@@ -49,7 +49,7 @@ protected function setUp(): void
4949 $ this ->propertyAccessor = new PropertyAccessor ();
5050 }
5151
52- public function getPathsWithMissingProperty ()
52+ public static function getPathsWithMissingProperty ()
5353 {
5454 return [
5555 [(object ) ['firstName ' => 'Bernhard ' ], 'lastName ' ],
@@ -69,7 +69,7 @@ public function getPathsWithMissingProperty()
6969 ];
7070 }
7171
72- public function getPathsWithMissingIndex ()
72+ public static function getPathsWithMissingIndex ()
7373 {
7474 return [
7575 [['firstName ' => 'Bernhard ' ], '[lastName] ' ],
@@ -515,7 +515,7 @@ public function testIsWritableRecognizesMagicCallIfEnabled()
515515 $ this ->assertTrue ($ this ->propertyAccessor ->isWritable (new TestClassMagicCall ('Bernhard ' ), 'magicCallProperty ' ));
516516 }
517517
518- public function getValidWritePropertyPaths ()
518+ public static function getValidWritePropertyPaths ()
519519 {
520520 return [
521521 [['Bernhard ' , 'Schussek ' ], '[0] ' , 'Bernhard ' ],
@@ -561,9 +561,9 @@ public function getValidWritePropertyPaths()
561561 ];
562562 }
563563
564- public function getValidReadPropertyPaths (): iterable
564+ public static function getValidReadPropertyPaths (): iterable
565565 {
566- yield from $ this -> getValidWritePropertyPaths ();
566+ yield from self :: getValidWritePropertyPaths ();
567567
568568 // Optional paths can only be read and can't be written to.
569569 yield [(object ) [], 'foo? ' , null ];
@@ -596,7 +596,7 @@ public function testSetValueDeepWithMagicGetter()
596596 $ this ->assertSame ('Updated ' , $ obj ->publicProperty ['foo ' ]['bar ' ]);
597597 }
598598
599- public function getReferenceChainObjectsForSetValue ()
599+ public static function getReferenceChainObjectsForSetValue ()
600600 {
601601 return [
602602 [['a ' => ['b ' => ['c ' => 'old-value ' ]]], '[a][b][c] ' , 'new-value ' ],
@@ -617,7 +617,7 @@ public function testSetValueForReferenceChainIssue($object, $path, $value)
617617 $ this ->assertEquals ($ value , $ this ->propertyAccessor ->getValue ($ object , $ path ));
618618 }
619619
620- public function getReferenceChainObjectsForIsWritable ()
620+ public static function getReferenceChainObjectsForIsWritable ()
621621 {
622622 return [
623623 [new TestClassIsWritable (['a ' => ['b ' => 'old-value ' ]]), 'value[a][b] ' , false ],
0 commit comments