@@ -55,7 +55,7 @@ protected function setUp(): void
55
55
$ this ->propertyAccessor = new PropertyAccessor ();
56
56
}
57
57
58
- public function getPathsWithUnexpectedType ()
58
+ public static function getPathsWithUnexpectedType ()
59
59
{
60
60
return [
61
61
['' , 'foobar ' ],
@@ -69,7 +69,7 @@ public function getPathsWithUnexpectedType()
69
69
];
70
70
}
71
71
72
- public function getPathsWithMissingProperty ()
72
+ public static function getPathsWithMissingProperty ()
73
73
{
74
74
return [
75
75
[(object ) ['firstName ' => 'Bernhard ' ], 'lastName ' ],
@@ -89,7 +89,7 @@ public function getPathsWithMissingProperty()
89
89
];
90
90
}
91
91
92
- public function getPathsWithMissingIndex ()
92
+ public static function getPathsWithMissingIndex ()
93
93
{
94
94
return [
95
95
[['firstName ' => 'Bernhard ' ], '[lastName] ' ],
@@ -660,7 +660,7 @@ public function testIsWritableReturnsFalseIfNotObjectOrArray($objectOrArray, $pa
660
660
$ this ->assertFalse ($ this ->propertyAccessor ->isWritable ($ objectOrArray , $ path ));
661
661
}
662
662
663
- public function getValidPropertyPaths ()
663
+ public static function getValidPropertyPaths ()
664
664
{
665
665
return [
666
666
[['Bernhard ' , 'Schussek ' ], '[0] ' , 'Bernhard ' ],
@@ -723,7 +723,7 @@ public function testSetValueDeepWithMagicGetter()
723
723
$ this ->assertSame ('Updated ' , $ obj ->publicProperty ['foo ' ]['bar ' ]);
724
724
}
725
725
726
- public function getReferenceChainObjectsForSetValue ()
726
+ public static function getReferenceChainObjectsForSetValue ()
727
727
{
728
728
return [
729
729
[['a ' => ['b ' => ['c ' => 'old-value ' ]]], '[a][b][c] ' , 'new-value ' ],
@@ -744,7 +744,7 @@ public function testSetValueForReferenceChainIssue($object, $path, $value)
744
744
$ this ->assertEquals ($ value , $ this ->propertyAccessor ->getValue ($ object , $ path ));
745
745
}
746
746
747
- public function getReferenceChainObjectsForIsWritable ()
747
+ public static function getReferenceChainObjectsForIsWritable ()
748
748
{
749
749
return [
750
750
[new TestClassIsWritable (['a ' => ['b ' => 'old-value ' ]]), 'value[a][b] ' , false ],
0 commit comments