-
Notifications
You must be signed in to change notification settings - Fork 545
Utilize array_last() #4504
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
Utilize array_last() #4504
Conversation
|
Please also add php84 polyfill to all the places. And once it's merged the bootstrap.php also needs to be modified in phpstan/phpstan. |
|
The polyfills also need to be mentioned at the bottom of scoper.inc.php (that's what I screwed up last time and shipped it, lead to crashing in some projects). |
|
This pull request has been marked as ready for review. |
|
something is fishy with shipmonk/composer-dependency-analyser |
|
Maybe needs to run on 8.5? |
|
seems this did the trick. thank you. |
|
Thank you! |
more readable code by using
array_last. also adds symfony/polyfills required for release builds which support PHP older than 8.5fixes ~9x "offset might not exist" errors on phpstan-src with
reportPossiblyNonexistentGeneralArrayOffset: true