Skip to content

Commit 5a38917

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents ef642d5 + 019a5ff commit 5a38917

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Tests/PropertyAccessorTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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],

Tests/PropertyPathBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function testReplaceDoesNotAllowInvalidOffsets($offset)
194194
$this->builder->replace($offset, 1, new PropertyPath('new1[new2].new3'));
195195
}
196196

197-
public function provideInvalidOffsets()
197+
public static function provideInvalidOffsets()
198198
{
199199
return [
200200
[6],

Tests/PropertyPathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testDotCannotBePresentAtTheBeginning()
3636
new PropertyPath('.property');
3737
}
3838

39-
public function providePathsContainingUnexpectedCharacters()
39+
public static function providePathsContainingUnexpectedCharacters()
4040
{
4141
return [
4242
['property.'],

0 commit comments

Comments
 (0)