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

No error mark on Enum bad syntax #3106

Open
TitanDvd opened this issue Oct 29, 2024 · 3 comments
Open

No error mark on Enum bad syntax #3106

TitanDvd opened this issue Oct 29, 2024 · 3 comments

Comments

@TitanDvd
Copy link

Describe the bug
There supossed to be an error mark in the following sentence

To Reproduce
$s = 'dashboard'; return HelpSections::{$s};

Expected behavior
An error mark

Screenshots
imagen

Platform and version
Win10 and PHP 8.3

@bmewburn
Copy link
Owner

Can you explain further? What should the error be?

@TitanDvd
Copy link
Author

Well as is a syntax error php should expects the constant name, or the static function name. Keep in mind that this is an issue on ENUMS

@bmewburn
Copy link
Owner

Seems fine on PHP 8.3, do you mean on versions less than 8.3 ? https://3v4l.org/qeZqJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants