Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PhpUnitBridge] Fix enum_exists mock tests #48929

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
Jan 9, 2023

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets NA
License MIT
Doc PR NA

This fixes some tests broken by #48516.
It seems that PHP needs the file to be required to be fully aware of the enum. Otherwise, even \class_exists and \enum_exists are returning false on ExistingEnumReal::class.

@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 21191d5 into symfony:6.3 Jan 9, 2023
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.

3 participants