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

[FrameworkBundle] Execute the PhpDocExtractor earlier#21370

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
GuilhemN wants to merge1 commit intosymfony:masterfromGuilhemN:INTARRAY

Conversation

@GuilhemN
Copy link
Contributor

QA
Branch?master
Bug fix?yes, but safer to apply on master
New feature?no
BC breaks?is changing a priority a bc break?
Deprecations?no
Tests pass?yes
Fixed tickets#21367
LicenseMIT
Doc PR

Fixes#21367.

I wonder if this is logical to execute the PhpDocExtractor after the ReflectionExtractor: when you use phpdocs it's because they are more precise than php type hints.
This causes an issue in NelmioApiDocBundle, for example you can't use int[] with a setter as the type mixed[] will be returned instead of int[].

Would you accept bumping its priority to -999?

This PR changes the priority of theReflectionExtractor to-1002 to make sure it is executed after thePhpDocExtractor.

jvasseur reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Not sure it should go on master to me. To reviewers: please advise your pov :)

@GuilhemN
Copy link
ContributorAuthor

@nicolas-grekas do you think it should go in 2.8? It is fine for me either way.

@xabbuh
Copy link
Member

Looks like a bug fix to me.

@fabpot
Copy link
Member

@dunglas's comment on the issue is interesting; it was done for performance reasons. This change makes sense but can we check that performance is still ok?

@GuilhemN
Copy link
ContributorAuthor

GuilhemN commentedJan 30, 2017
edited
Loading

@fabpot that's why there is a cache layer, i don't think it's relevant.

@fabpot
Copy link
Member

Thank you@GuilhemN.

GuilhemN reacted with hooray emoji

fabpot added a commit that referenced this pull requestJan 30, 2017
…lhemN)This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes#21370).Discussion----------[FrameworkBundle] Execute the PhpDocExtractor earlier| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes, but safer to apply on master| New feature?  | no| BC breaks?    | is changing a priority a bc break?| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21367| License       | MIT| Doc PR        |Fixes#21367.> I wonder if this is logical to execute the PhpDocExtractor after the ReflectionExtractor: when you use phpdocs it's because they are more precise than php type hints.This causes an issue in NelmioApiDocBundle, for example you can't use int[] with a setter as the type mixed[] will be returned instead of int[].>> ~~Would you accept bumping its priority to -999?~~This PR changes the priority of the `ReflectionExtractor` to `-1002` to make sure it is executed after the `PhpDocExtractor`.Commits-------0425e05 [FrameworkBundle] Execute the PhpDocExtractor earlier
@fabpotfabpot closed thisJan 30, 2017
@GuilhemNGuilhemN deleted the INTARRAY branchJanuary 31, 2017 05:58
fabpot added a commit that referenced this pull requestJan 31, 2017
This PR was merged into the 3.3-dev branch.Discussion----------[FrameworkBundle] Fix tests| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aTravis is red because of the new test introduced in#21370. This should make it green again.Commits-------1bf451c [FrameworkBundle] Fix tests
nicolas-grekas added a commit that referenced this pull requestFeb 1, 2017
… case (xabbuh)This PR was merged into the 2.8 branch.Discussion----------[FrameworkBundle] add missing functional Serializer test case| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |This is needed to make the test introduced in#21370. It basically backports the functional test config as introduced by@dunglas in#20480.Commits-------24243ac add missing functional Serializer test case
This was referencedFeb 6, 2017
@teohhanhui
Copy link
Contributor

This has caused BC break in my app. 😞

@xabbuh
Copy link
Member

@teohhanhui Please open a new issue describing the BC break you experience. Here your comment will likely get lost.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FrameworkBundle] Execute the PhpDocExtractor earlier

6 participants

@GuilhemN@nicolas-grekas@xabbuh@fabpot@teohhanhui@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp