[PropertyAccess] Fix getter call order BC

This commit is contained in:
Gábor Egyed 2020-06-01 23:14:04 +02:00
parent e5b5d9ea14
commit 8cf80688c7
No known key found for this signature in database
GPG Key ID: 54D2EF7194E6CC79
3 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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