-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[2.15.0] Inserting AllowDynamicProperties attribute breaks final classes #1516
Comments
I guess we just need to shuffle laravel-ide-helper/src/Console/ModelsCommand.php Line 1086 in c119e89
Do you want to make a PR, including a test using |
Does this fix it for you? #1517 |
Yeah that fixes it, according to the tests |
Looks like it's fixed in 1.5.1, thanks a lot! |
Versions:
Description:
Apparently 2.15.0 introduced adding the AllowDynamicProperties attribute to generated model helper classes. Unfortunately, if the model class is declared final, this attribute is inserted between the
final
andclass
keywords leading to invalid php.Steps To Reproduce:
The text was updated successfully, but these errors were encountered: