Skip to content

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

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

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

fancyweb
Copy link
Contributor

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

Choose a reason for hiding this comment

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

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 November 20, 2020 17:38
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Here is one comment that should make tests green.

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

Tests are green 🙂

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

Thank you @fancyweb.

@derrabus derrabus merged commit 6224ffa into symfony:4.4 Nov 26, 2020
@fancyweb fancyweb deleted the phpunit-bridge-patch-1 branch November 26, 2020 18:08
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.

5 participants