8000 [PropertyAccess] Fix getter call order BC · symfony/symfony@968ce89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 968ce89

Browse files
committed
[PropertyAccess] Fix getter call order BC
1 parent e5b5d9e commit 968ce89

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClass.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ public function getPublicAccessor()
6969
return $this->publicAccessor;
7070
}
7171

72+
public function isPublicAccessor($param)
73+
{
74+
throw new \LogicException('This method should never have been called.');
75+
}
76+
7277
public function getPublicAccessorWithDefaultValue()
7378
{
7479
return $this->publicAccessorWithDefaultValue;

src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
4040
/**
4141
* @internal
4242
*/
43-
public static $defaultAccessorPrefixes = ['is', 'can', 'get', 'has'];
43+
public static $defaultAccessorPrefixes = ['get', 'is', 'has', 'can'];
4444

4545
/**
4646
* @internal

0 commit comments

Comments
 (0)
0