Skip to content

Commit

Permalink
[PropertyAccess] Fix getter call order BC
Browse files Browse the repository at this point in the history
  • Loading branch information
1ed committed Jun 4, 2020
1 parent e5b5d9e commit 8cf8068
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public function getPublicAccessor()
return $this->publicAccessor;
}

public function isPublicAccessor($param)
{
throw new \LogicException('This method should never have been called.');
}

public function getPublicAccessorWithDefaultValue()
{
return $this->publicAccessorWithDefaultValue;
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/PropertyAccess/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cf8068

Please sign in to comment.