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

[PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader #38597

Merged
merged 1 commit into from Nov 26, 2020

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Oct 16, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #36036
License MIT
Doc PR -

I tested it successfully against the two examples stof gave in the issue. However, I don't see how to write a working real test for this.

The solution I found is to add the missing checked file in the original files stack so when the type of the deprecation is computed instead of having "self" -> "self", we have "vendor" -> "self".

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Thanks! A phpt test might be nice if you can...

@fancyweb fancyweb force-pushed the phpunit-bridge-patch-1 branch 3 times, most recently from 2976c0e to 7b889fb Compare Nov 20, 2020
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Here is one comment that should make tests green.

@fancyweb fancyweb force-pushed the phpunit-bridge-patch-1 branch from 7b889fb to b40f4ff Compare Nov 26, 2020
@fancyweb
Copy link
Contributor Author

fancyweb commented Nov 26, 2020

Tests are green 🙂

@fancyweb fancyweb force-pushed the phpunit-bridge-patch-1 branch from b40f4ff to dff5394 Compare Nov 26, 2020
@derrabus
Copy link
Member

derrabus commented Nov 26, 2020

Thank you @fancyweb.

@derrabus derrabus merged commit 6224ffa into symfony:4.4 Nov 26, 2020
4 of 5 checks passed
@fancyweb fancyweb deleted the phpunit-bridge-patch-1 branch Nov 26, 2020
This was referenced Nov 29, 2020
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

5 participants