@@ -56,7 +56,7 @@ public function testParsePhpConstants($yaml, $value)
5656 $ this ->assertSame ($ value , $ actual );
5757 }
5858
59- public function getTestsForParsePhpConstants ()
59+ public static function getTestsForParsePhpConstants ()
6060 {
6161 return [
6262 ['!php/const Symfony\Component\Yaml\Yaml::PARSE_CONSTANT ' , Yaml::PARSE_CONSTANT ],
@@ -195,7 +195,7 @@ public function testParseReferences($yaml, $expected)
195195 $ this ->assertSame ($ expected , Inline::parse ($ yaml , 0 , $ references ));
196196 }
197197
198- public function getDataForParseReferences ()
198+ public static function getDataForParseReferences ()
199199 {
200200 return [
201201 'scalar ' => ['*var ' , 'var-value ' ],
@@ -245,7 +245,7 @@ public function testParseUnquotedScalarStartingWithReservedIndicator($indicator)
245245 Inline::parse (sprintf ('{ foo: %sfoo } ' , $ indicator ));
246246 }
247247
248- public function getReservedIndicators ()
248+ public static function getReservedIndicators ()
249249 {
250250 return [['@ ' ], ['` ' ]];
251251 }
@@ -261,7 +261,7 @@ public function testParseUnquotedScalarStartingWithScalarIndicator($indicator)
261261 Inline::parse (sprintf ('{ foo: %sfoo } ' , $ indicator ));
262262 }
263263
264- public function getScalarIndicators ()
264+ public static function getScalarIndicators ()
265265 {
266266 return [['| ' ], ['> ' ], ['% ' ]];
267267 }
@@ -274,7 +274,7 @@ public function testIsHash($array, $expected)
274274 $ this ->assertSame ($ expected , Inline::isHash ($ array ));
275275 }
276276
277- public function getDataForIsHash ()
277+ public static function getDataForIsHash ()
278278 {
279279 return [
280280 [[], false ],
@@ -284,7 +284,7 @@ public function getDataForIsHash()
284284 ];
285285 }
286286
287- public function getTestsForParse ()
287+ public static function getTestsForParse ()
288288 {
289289 return [
290290 ['' , '' ],
@@ -370,7 +370,7 @@ public function getTestsForParse()
370370 ];
371371 }
372372
373- public function getTestsForParseWithMapObjects ()
373+ public static function getTestsForParseWithMapObjects ()
374374 {
375375 return [
376376 ['' , '' ],
@@ -451,7 +451,7 @@ public function getTestsForParseWithMapObjects()
451451 ];
452452 }
453453
454- public function getTestsForDump ()
454+ public static function getTestsForDump ()
455455 {
456456 return [
457457 ['null ' , null ],
@@ -549,7 +549,7 @@ public function testParseTimestampAsDateTimeObject(string $yaml, int $year, int
549549 $ this ->assertSame ($ timezone , $ date ->format ('O ' ));
550550 }
551551
552- public function getTimestampTests (): array
552+ public static function getTimestampTests (): array
553553 {
554554 return [
555555 'canonical ' => ['2001-12-15T02:59:43.1Z ' , 2001 , 12 , 15 , 2 , 59 , 43 , 100000 , '+0000 ' ],
@@ -591,7 +591,7 @@ public function testDumpUnitEnum()
591591 $ this ->assertSame ("!php/const Symfony\Component\Yaml\Tests\Fixtures\FooUnitEnum::BAR " , Inline::dump (FooUnitEnum::BAR ));
592592 }
593593
594- public function getDateTimeDumpTests ()
594+ public static function getDateTimeDumpTests ()
595595 {
596596 $ tests = [];
597597
@@ -612,7 +612,7 @@ public function testParseBinaryData($data)
612612 $ this ->assertSame ('Hello world ' , Inline::parse ($ data ));
613613 }
614614
615- public function getBinaryData ()
615+ public static function getBinaryData ()
616616 {
617617 return [
618618 'enclosed with double quotes ' => ['!!binary "SGVsbG8gd29ybGQ=" ' ],
@@ -632,7 +632,7 @@ public function testParseInvalidBinaryData($data, $expectedMessage)
632632 Inline::parse ($ data );
633633 }
634634
635- public function getInvalidBinaryData ()
635+ public static function getInvalidBinaryData ()
636636 {
637637 return [
638638 'length not a multiple of four ' => ['!!binary "SGVsbG8d29ybGQ=" ' , '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/ ' ],
@@ -674,7 +674,7 @@ public function testParseMissingMappingValueAsNull($yaml, $expected)
674674 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
675675 }
676676
677- public function getTestsForNullValues ()
677+ public static function getTestsForNullValues ()
678678 {
679679 return [
680680 'null before closing curly brace ' => ['{foo:} ' , ['foo ' => null ]],
@@ -697,7 +697,7 @@ public function testImplicitStringCastingOfMappingKeysIsDeprecated($yaml, $expec
697697 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
698698 }
699699
700- public function getNotPhpCompatibleMappingKeyData ()
700+ public static function getNotPhpCompatibleMappingKeyData ()
701701 {
702702 return [
703703 'boolean-true ' => ['{true: "foo"} ' , ['true ' => 'foo ' ]],
@@ -776,7 +776,7 @@ public function testParseOctalNumbers($expected, $yaml)
776776 self ::assertSame ($ expected , Inline::parse ($ yaml ));
777777 }
778778
779- public function getTestsForOctalNumbers ()
779+ public static function getTestsForOctalNumbers ()
780780 {
781781 return [
782782 'positive octal number ' => [28 , '0o34 ' ],
@@ -797,7 +797,7 @@ public function testParseOctalNumbersYaml11Notation(int $expected, string $yaml,
797797 self ::assertSame ($ expected , Inline::parse ($ yaml ));
798798 }
799799
800- public function getTestsForOctalNumbersYaml11Notation ()
800+ public static function getTestsForOctalNumbersYaml11Notation ()
801801 {
802802 return [
803803 'positive octal number ' => [28 , '034 ' , '0o34 ' ],
@@ -818,7 +818,7 @@ public function testPhpObjectWithEmptyValue($expected, $value)
818818 $ this ->assertSame ($ expected , Inline::parse ($ value , Yaml::PARSE_OBJECT ));
819819 }
820820
821- public function phpObjectTagWithEmptyValueProvider ()
821+ public static function phpObjectTagWithEmptyValueProvider ()
822822 {
823823 return [
824824 [false , '!php/object ' ],
@@ -842,7 +842,7 @@ public function testPhpConstTagWithEmptyValue($expected, $value)
842842 $ this ->assertSame ($ expected , Inline::parse ($ value , Yaml::PARSE_CONSTANT ));
843843 }
844844
845- public function phpConstTagWithEmptyValueProvider ()
845+ public static function phpConstTagWithEmptyValueProvider ()
846846 {
847847 return [
848848 ['' , '!php/const ' ],
@@ -894,7 +894,7 @@ public function testUnquotedExclamationMarkThrows(string $value)
894894 Inline::parse ($ value );
895895 }
896896
897- public function unquotedExclamationMarkThrowsProvider ()
897+ public static function unquotedExclamationMarkThrowsProvider ()
898898 {
899899 return [
900900 ['! ' ],
@@ -926,7 +926,7 @@ public function testQuotedExclamationMark($expected, string $value)
926926 }
927927
928928 // This provider should stay consistent with unquotedExclamationMarkThrowsProvider
929- public function quotedExclamationMarkProvider ()
929+ public static function quotedExclamationMarkProvider ()
930930 {
931931 return [
932932 ['! ' , '"!" ' ],
@@ -956,7 +956,7 @@ public function testParseIdeographicSpace(string $yaml, string $expected)
956956 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
957957 }
958958
959- public function ideographicSpaceProvider (): array
959+ public static function ideographicSpaceProvider (): array
960960 {
961961 return [
962962 ["\u{3000}" , ' ' ],
0 commit comments