Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cf8068

Browse files
committed
[PropertyAccess] Fix getter call order BC
1 parent e5b5d9e commit 8cf8068

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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/PropertyAccess/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=7.2.5",
2020
"symfony/inflector": "^4.4|^5.0",
2121
"symfony/polyfill-php80": "^1.15",
22-
"symfony/property-info": "^5.1"
22+
"symfony/property-info": "^5.1.1"
2323
},
2424
"require-dev": {
2525
"symfony/cache": "^4.4|^5.0"

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)