[PropertyAccess] Fix getter call order BC
This commit is contained in:
parent
e5b5d9ea14
commit
8cf80688c7
@ -69,6 +69,11 @@ class TestClass
|
||||
return $this->publicAccessor;
|
||||
}
|
||||
|
||||
public function isPublicAccessor($param)
|
||||
{
|
||||
throw new \LogicException('This method should never have been called.');
|
||||
}
|
||||
|
||||
public function getPublicAccessorWithDefaultValue()
|
||||
{
|
||||
return $this->publicAccessorWithDefaultValue;
|
||||
|
@ -19,7 +19,7 @@
|
||||
"php": ">=7.2.5",
|
||||
"symfony/inflector": "^4.4|^5.0",
|
||||
"symfony/polyfill-php80": "^1.15",
|
||||
"symfony/property-info": "^5.1"
|
||||
"symfony/property-info": "^5.1.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/cache": "^4.4|^5.0"
|
||||
|
@ -40,7 +40,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public static $defaultAccessorPrefixes = ['is', 'can', 'get', 'has'];
|
||||
public static $defaultAccessorPrefixes = ['get', 'is', 'has', 'can'];
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
Reference in New Issue
Block a user