Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cf8068

Browse files
committed
[PropertyAccess] Fix getter call order BC
1 parente5b5d9e commit8cf8068

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+
publicfunctionisPublicAccessor($param)
73+
{
74+
thrownew \LogicException('This method should never have been called.');
75+
}
76+
7277
publicfunctiongetPublicAccessorWithDefaultValue()
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-
publicstatic$defaultAccessorPrefixes = ['is','can','get','has'];
43+
publicstatic$defaultAccessorPrefixes = ['get','is','has','can'];
4444

4545
/**
4646
* @internal

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp