You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Pint on PHP 8.4 we're getting Cannot access offset of type null on SplFixedArray on the reproduction case (Index invalid or out of range on the original file, before narrowing it down to this specific case).
We don't get the error on PHP 8.3, if we remove the contents of the closure, remove the use() statement or if we add a return statement.
Steps To Reproduce
<?phpfunction () use ($bookings) {
get();
};
./vendor/laravel/pint --no-config --test test.php
The text was updated successfully, but these errors were encountered:
Pint Version
1.19.0
PHP Version
8.4.2
Description
When running Pint on PHP 8.4 we're getting
Cannot access offset of type null on SplFixedArray
on the reproduction case (Index invalid or out of range
on the original file, before narrowing it down to this specific case).We don't get the error on PHP 8.3, if we remove the contents of the closure, remove the
use()
statement or if we add areturn
statement.Steps To Reproduce
./vendor/laravel/pint --no-config --test test.php
The text was updated successfully, but these errors were encountered: