-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Undefined Property #2382
Comments
PHP 8.2 deprecates dynamic property creation https://wiki.php.net/rfc/deprecate_dynamic_properties. Because this diagnostic is useful for picking up typos in code that does not utilise dynamic properties it was decided to apply the diagnostic to other versions of PHP too within intelephense. If you have a code base that relies on dynamic properties (from my understanding CI 3 does) you can turn them off by setting |
Thanks @bmewburn. I had to restart VS Code after applying this setting. I would expect this to not have occurred, though? I'm using
|
@VaelVictus , as mentioned above, it's a useful diagnostic for any php version if dynamic properties are not used. It had been requested a few times. Because it can be switched off easily, no version check was implemented. |
Thanks a lot @bmewburn it solve my problem. |
hi |
i have a problem |
hello |
Describe the bug
Before my code run without error now my code run as well but all of my property in code igniter 3 get error undefined property intelephense (1014).
To Reproduce
i don't know
Expected behavior
i expected when my program not run the code show error and when my code no error my program run as well
Screenshots
![{E09D62C1-CFEF-45C9-959F-EFF90B51C3A1}](https://user-images.githubusercontent.com/121545617/210190812-1c29c368-e324-4d9e-96a1-eedad7cc751d.png)
Platform and version
windows Visual Studio Code & PHP Intelephense v1.9.0
The text was updated successfully, but these errors were encountered: