Skip to content
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

[FrameworkBundle] Fix PropertyInfo registration when using reflection-docblock 3 #17931

Closed
wants to merge 2 commits into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Feb 26, 2016

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.

@@ -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')) {
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@dunglas
Copy link
Member Author

dunglas commented Feb 29, 2016

ping @symfony/deciders

Travis failure not related

@fabpot
Copy link
Member

fabpot commented Feb 29, 2016

Thank you @dunglas.

@fabpot fabpot closed this Feb 29, 2016
fabpot added a commit that referenced this pull request Feb 29, 2016
…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
fabpot added a commit that referenced this pull request Mar 1, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants