@@ -49,7 +49,7 @@ protected function setUp(): void
49
49
$ this ->propertyAccessor = new PropertyAccessor ();
50
50
}
51
51
52
- public function getPathsWithMissingProperty ()
52
+ public static function getPathsWithMissingProperty ()
53
53
{
54
54
return [
55
55
[(object ) ['firstName ' => 'Bernhard ' ], 'lastName ' ],
@@ -69,7 +69,7 @@ public function getPathsWithMissingProperty()
69
69
];
70
70
}
71
71
72
- public function getPathsWithMissingIndex ()
72
+ public static function getPathsWithMissingIndex ()
73
73
{
74
74
return [
75
75
[['firstName ' => 'Bernhard ' ], '[lastName] ' ],
@@ -515,7 +515,7 @@ public function testIsWritableRecognizesMagicCallIfEnabled()
515
515
$ this ->assertTrue ($ this ->propertyAccessor ->isWritable (new TestClassMagicCall ('Bernhard ' ), 'magicCallProperty ' ));
516
516
}
517
517
518
- public function getValidWritePropertyPaths ()
518
+ public static function getValidWritePropertyPaths ()
519
519
{
520
520
return [
521
521
[['Bernhard ' , 'Schussek ' ], '[0] ' , 'Bernhard ' ],
@@ -561,9 +561,9 @@ public function getValidWritePropertyPaths()
561
561
];
562
562
}
563
563
564
- public function getValidReadPropertyPaths (): iterable
564
+ public static function getValidReadPropertyPaths (): iterable
565
565
{
566
- yield from $ this -> getValidWritePropertyPaths ();
566
+ yield from self :: getValidWritePropertyPaths ();
567
567
568
568
// Optional paths can only be read and can't be written to.
569
569
yield [(object ) [], 'foo? ' , null ];
@@ -596,7 +596,7 @@ public function testSetValueDeepWithMagicGetter()
596
596
$ this ->assertSame ('Updated ' , $ obj ->publicProperty ['foo ' ]['bar ' ]);
597
597
}
598
598
599
- public function getReferenceChainObjectsForSetValue ()
599
+ public static function getReferenceChainObjectsForSetValue ()
600
600
{
601
601
return [
602
602
[['a ' => ['b ' => ['c ' => 'old-value ' ]]], '[a][b][c] ' , 'new-value ' ],
@@ -617,7 +617,7 @@ public function testSetValueForReferenceChainIssue($object, $path, $value)
617
617
$ this ->assertEquals ($ value , $ this ->propertyAccessor ->getValue ($ object , $ path ));
618
618
}
619
619
620
- public function getReferenceChainObjectsForIsWritable ()
620
+ public static function getReferenceChainObjectsForIsWritable ()
621
621
{
622
622
return [
623
623
[new TestClassIsWritable (['a ' => ['b ' => 'old-value ' ]]), 'value[a][b] ' , false ],
0 commit comments