@@ -54,7 +54,7 @@ public function testParsePhpConstants($yaml, $value)
5454 $ this ->assertSame ($ value , $ actual );
5555 }
5656
57- public function getTestsForParsePhpConstants ()
57+ public static function getTestsForParsePhpConstants ()
5858 {
5959 return [
6060 ['!php/const Symfony\Component\Yaml\Yaml::PARSE_CONSTANT ' , Yaml::PARSE_CONSTANT ],
@@ -225,7 +225,7 @@ public function testParseReferences($yaml, $expected)
225225 $ this ->assertSame ($ expected , Inline::parse ($ yaml , 0 , $ references ));
226226 }
227227
228- public function getDataForParseReferences ()
228+ public static function getDataForParseReferences ()
229229 {
230230 return [
231231 'scalar ' => ['*var ' , 'var-value ' ],
@@ -275,7 +275,7 @@ public function testParseUnquotedScalarStartingWithReservedIndicator($indicator)
275275 Inline::parse (sprintf ('{ foo: %sfoo } ' , $ indicator ));
276276 }
277277
278- public function getReservedIndicators ()
278+ public static function getReservedIndicators ()
279279 {
280280 return [['@ ' ], ['` ' ]];
281281 }
@@ -291,7 +291,7 @@ public function testParseUnquotedScalarStartingWithScalarIndicator($indicator)
291291 Inline::parse (sprintf ('{ foo: %sfoo } ' , $ indicator ));
292292 }
293293
294- public function getScalarIndicators ()
294+ public static function getScalarIndicators ()
295295 {
296296 return [['| ' ], ['> ' ], ['% ' ]];
297297 }
@@ -304,7 +304,7 @@ public function testIsHash($array, $expected)
304304 $ this ->assertSame ($ expected , Inline::isHash ($ array ));
305305 }
306306
307- public function getDataForIsHash ()
307+ public static function getDataForIsHash ()
308308 {
309309 return [
310310 [[], false ],
@@ -314,7 +314,7 @@ public function getDataForIsHash()
314314 ];
315315 }
316316
317- public function getTestsForParse ()
317+ public static function getTestsForParse ()
318318 {
319319 return [
320320 ['' , '' ],
@@ -400,7 +400,7 @@ public function getTestsForParse()
400400 ];
401401 }
402402
403- public function getTestsForParseWithMapObjects ()
403+ public static function getTestsForParseWithMapObjects ()
404404 {
405405 return [
406406 ['' , '' ],
@@ -481,7 +481,7 @@ public function getTestsForParseWithMapObjects()
481481 ];
482482 }
483483
484- public function getTestsForDump ()
484+ public static function getTestsForDump ()
485485 {
486486 return [
487487 ['null ' , null ],
@@ -583,7 +583,7 @@ public function testParseTimestampAsDateTimeObject(string $yaml, int $year, int
583583 $ this ->assertSame ($ timezone , $ date ->format ('O ' ));
584584 }
585585
586- public function getTimestampTests (): array
586+ public static function getTimestampTests (): array
587587 {
588588 return [
589589 'canonical ' => ['2001-12-15T02:59:43.1Z ' , 2001 , 12 , 15 , 2 , 59 , 43 , 100000 , '+0000 ' ],
@@ -632,7 +632,7 @@ public function testParseBackedEnumValue()
632632 $ this ->assertSame (FooBackedEnum::BAR ->value , Inline::parse ("!php/enum Symfony\Component\Yaml\Tests\Fixtures\FooBackedEnum::BAR->value " , Yaml::PARSE_CONSTANT ));
633633 }
634634
635- public function getDateTimeDumpTests ()
635+ public static function getDateTimeDumpTests ()
636636 {
637637 $ tests = [];
638638
@@ -653,7 +653,7 @@ public function testParseBinaryData($data)
653653 $ this ->assertSame ('Hello world ' , Inline::parse ($ data ));
654654 }
655655
656- public function getBinaryData ()
656+ public static function getBinaryData ()
657657 {
658658 return [
659659 'enclosed with double quotes ' => ['!!binary "SGVsbG8gd29ybGQ=" ' ],
@@ -673,7 +673,7 @@ public function testParseInvalidBinaryData($data, $expectedMessage)
673673 Inline::parse ($ data );
674674 }
675675
676- public function getInvalidBinaryData ()
676+ public static function getInvalidBinaryData ()
677677 {
678678 return [
679679 '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\)/ ' ],
@@ -715,7 +715,7 @@ public function testParseMissingMappingValueAsNull($yaml, $expected)
715715 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
716716 }
717717
718- public function getTestsForNullValues ()
718+ public static function getTestsForNullValues ()
719719 {
720720 return [
721721 'null before closing curly brace ' => ['{foo:} ' , ['foo ' => null ]],
@@ -738,7 +738,7 @@ public function testImplicitStringCastingOfMappingKeysIsDeprecated($yaml, $expec
738738 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
739739 }
740740
741- public function getNotPhpCompatibleMappingKeyData ()
741+ public static function getNotPhpCompatibleMappingKeyData ()
742742 {
743743 return [
744744 'boolean-true ' => ['{true: "foo"} ' , ['true ' => 'foo ' ]],
@@ -817,7 +817,7 @@ public function testParseOctalNumbers($expected, $yaml)
817817 self ::assertSame ($ expected , Inline::parse ($ yaml ));
818818 }
819819
820- public function getTestsForOctalNumbers ()
820+ public static function getTestsForOctalNumbers ()
821821 {
822822 return [
823823 'positive octal number ' => [28 , '0o34 ' ],
@@ -834,7 +834,7 @@ public function testParseOctalNumbersYaml11Notation(string $expected, string $ya
834834 self ::assertSame ($ expected , Inline::parse ($ yaml ));
835835 }
836836
837- public function getTestsForOctalNumbersYaml11Notation ()
837+ public static function getTestsForOctalNumbersYaml11Notation ()
838838 {
839839 return [
840840 'positive octal number ' => ['034 ' , '034 ' ],
@@ -856,7 +856,7 @@ public function testPhpObjectWithEmptyValue(string $value)
856856 Inline::parse ($ value , Yaml::PARSE_OBJECT );
857857 }
858858
859- public function phpObjectTagWithEmptyValueProvider ()
859+ public static function phpObjectTagWithEmptyValueProvider ()
860860 {
861861 return [
862862 ['!php/object ' ],
@@ -890,7 +890,7 @@ public function testPhpEnumTagWithEmptyValue(string $value)
890890 Inline::parse (str_replace ('!php/const ' , '!php/enum ' , $ value ), Yaml::PARSE_CONSTANT );
891891 }
892892
893- public function phpConstTagWithEmptyValueProvider ()
893+ public static function phpConstTagWithEmptyValueProvider ()
894894 {
895895 return [
896896 ['!php/const ' ],
@@ -926,7 +926,7 @@ public function testUnquotedExclamationMarkThrows(string $value)
926926 Inline::parse ($ value );
927927 }
928928
929- public function unquotedExclamationMarkThrowsProvider ()
929+ public static function unquotedExclamationMarkThrowsProvider ()
930930 {
931931 return [
932932 ['! ' ],
@@ -958,7 +958,7 @@ public function testQuotedExclamationMark($expected, string $value)
958958 }
959959
960960 // This provider should stay consistent with unquotedExclamationMarkThrowsProvider
961- public function quotedExclamationMarkProvider ()
961+ public static function quotedExclamationMarkProvider ()
962962 {
963963 return [
964964 ['! ' , '"!" ' ],
@@ -988,7 +988,7 @@ public function testParseIdeographicSpace(string $yaml, string $expected)
988988 $ this ->assertSame ($ expected , Inline::parse ($ yaml ));
989989 }
990990
991- public function ideographicSpaceProvider (): array
991+ public static function ideographicSpaceProvider (): array
992992 {
993993 return [
994994 ["\u{3000}" , ' ' ],
0 commit comments