-
Notifications
You must be signed in to change notification settings - Fork 340
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
PHP 8.2 deprecated usage of 'Creation of dynamic property' #3030
Comments
vahonc
added a commit
to vahonc/elasticsuite
that referenced
this issue
Aug 25, 2023
vahonc
added a commit
to vahonc/elasticsuite
that referenced
this issue
Sep 5, 2023
rbayet
added a commit
that referenced
this issue
Sep 5, 2023
…ned-property-2.11-fix Fix #3030, avoid deprecated access to an undefined property
Thanks! |
rbayet
added a commit
to rbayet/elasticsuite
that referenced
this issue
Sep 5, 2023
rbayet
added a commit
to rbayet/elasticsuite
that referenced
this issue
Sep 5, 2023
rbayet
added a commit
that referenced
this issue
Sep 5, 2023
Fixes #3030 deprecated access to an undefined property (2.10.x)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preconditions
Steps to reproduce
vendor/bin/phpstan analyse --level=0 vendor/smile | grep 'Access to an undefined property
Expected result
Actual result
In theory this code should crash when being executed in PHP 8.2 because Magento's default error_reporting is set to not allow deprecated usages of code.
Extra
Similar issue was already reported before in #2835, and some fixes were done: here and here but not everything was fixed.
PHPstan is a great tool to use regularly to check the state of your code quality, maybe it can be added in your toolset of automated test checks (also adding
bitexpert/phpstan-magento
as dev dependency makes it easier to run tests and adds some extra rules on top of default phpstan specifically for magento)?The text was updated successfully, but these errors were encountered: