-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Fix PropertyInfo registration when using reflection-docblock 3 #17931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1010,7 +1010,7 @@ private function registerPropertyInfoConfiguration(array $config, ContainerBuild | |||
|
|||
$loader->load('property_info.xml'); | |||
|
|||
if (class_exists('phpDocumentor\Reflection\ClassReflector')) { | |||
if (class_exists('phpDocumentor\Reflection\Types\ContextFactory')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also check for existence of the phpDocumentor\Reflection\DocBlockFactoryInterface
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ping @symfony/deciders Travis failure not related |
Thank you @dunglas. |
…ng reflection-docblock 3 (dunglas) This PR was squashed before being merged into the 3.1-dev branch (closes #17931). Discussion ---------- [FrameworkBundle] Fix PropertyInfo registration when using reflection-docblock 3 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | yes | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Currently, the PHPDoc extractor of PropertyInfo is not registered anymore because #17531 was merged. Commits ------- 6d31365 [FrameworkBundle] Fix PropertyInfo registration when using reflection-docblock 3
This PR was merged into the 3.1-dev branch. Discussion ---------- [FrameworkBundle] Fix PhpDocExtractor registration | Q | A | ------------- | --- | Branch | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fix for the fix... (#17931). `class_exists` on an interface will never work. I've tested this one in real condition and it works. Commits ------- 89467b5 [FrameworkBundle] Fix PhpDocExtractor registration
Currently, the PHPDoc extractor of PropertyInfo is not registered anymore because #17531 was merged.