Skip to content

Commit 476d559

Browse files
author
Paul Bearne
committed
String "Single Line" does not require double quotes; use single quotes instead
1 parent a72a875 commit 476d559

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

tests/phpunit/tests/admin/includes/misc/insertWithMarkers.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,18 @@ public function test_insert_with_markers( $initial_content, $marker, $insertion,
5959
$this->assertSame( $expected, $actual_content );
6060
}
6161

62-
/**
63-
* Data provider for test_insert_with_markers.
64-
*
65-
* @return array[]
66-
*/
62+
/**
63+
* Data provider for test_insert_with_markers.
64+
*
65+
* @return array[]
66+
*
67+
* @phpstan-return array<string, array{
68+
* initial_content: string,
69+
* marker: string,
70+
* insertion: string|string[],
71+
* expected: string,
72+
* }>
73+
*/
6774
public function data_insert_with_markers() {
6875
$wp_comments = array(
6976
'# The directives (lines) between "BEGIN %s" and "END %s" are',
@@ -103,7 +110,7 @@ public function data_insert_with_markers() {
103110
'String insertion instead of array' => array(
104111
'initial_content' => '',
105112
'marker' => 'StringTest',
106-
'insertion' => "Single Line",
113+
'insertion' => 'Single Line',
107114
'expected' => "\n# BEGIN StringTest\n{$string_desc}\nSingle Line\n# END StringTest",
108115
),
109116
);

0 commit comments

Comments
 (0)