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

Parse and render anonymous classes correctly on php 8 #36914

Merged
merged 1 commit into from May 24, 2020

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #36872
License MIT
Doc PR N/A

The format of the value that get_class() returns for anonymous classes has changed in php 8. This PR attempts to detect both formats, with the help of the PHP80 polyfill where possible.

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.

grep 'class@' src/ -r gives a few more places, isn't it? eg src/Symfony/Component/Messenger/Middleware/TraceableMiddleware.php

src/Symfony/Component/Console/Application.php Outdated Show resolved Hide resolved
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone May 23, 2020
@derrabus derrabus force-pushed the bugfix/render-anonymous-class branch from 6669181 to d362a7c Compare May 23, 2020 14:39
@derrabus derrabus requested a review from sroze as a code owner May 23, 2020 14:39
@derrabus derrabus force-pushed the bugfix/render-anonymous-class branch 3 times, most recently from ce625dc to f2fccb4 Compare May 23, 2020 14:53
@nicolas-grekas nicolas-grekas changed the title [Console][Debug][ErrorHandler] Render anonymous classes correctly on php 8 Render anonymous classes correctly on php 8 May 24, 2020
@nicolas-grekas nicolas-grekas changed the title Render anonymous classes correctly on php 8 Parse and render anonymous classes correctly on php 8 May 24, 2020
@nicolas-grekas
Copy link
Member

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit 6d02565 into symfony:4.4 May 24, 2020
@derrabus derrabus deleted the bugfix/render-anonymous-class branch May 24, 2020 08:42
This was referenced May 26, 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

3 participants