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

Flag invalid enum case value types #8693

Merged
merged 2 commits into from Nov 11, 2022
Merged

Flag invalid enum case value types #8693

merged 2 commits into from Nov 11, 2022

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Nov 10, 2022

Fixes #8267

@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 10, 2022
@@ -325,17 +337,6 @@ public function start(PhpParser\Node\Stmt\ClassLike $node): ?bool
$this->file_storage->has_visitor_issues = true;
$storage->has_visitor_issues = true;
}
$storage->class_implements['backedenum'] = 'BackedEnum';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This means we no longer consider enums backed with an invalid type as actually backed.

@weirdan weirdan merged commit c613e47 into vimeo:master Nov 11, 2022
@weirdan weirdan deleted the fix-8267 branch November 11, 2022 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid enum backing type causes crash
1 participant