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

Appearance settings

Commit 968ce89

Browse filesBrowse files
committed
[PropertyAccess] Fix getter call order BC
1 parent e5b5d9e commit 968ce89
Copy full SHA for 968ce89

File tree

Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed

‎src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClass.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestClass.php
+5Lines 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/PropertyInfo/Extractor/ReflectionExtractor.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.