-
-
Notifications
You must be signed in to change notification settings - Fork 596
[5.x] PHP 8.5 Compatibility #13112
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
base: 5.x
Are you sure you want to change the base?
[5.x] PHP 8.5 Compatibility #13112
Conversation
|
The failing PHP 8.5 tests should pass once laravel/framework#57822 has been tagged. |
|
|
||
| return Blink::once('mounted-collections', fn () => $this | ||
| ->all() | ||
| ->filter(fn ($collection) => $collection->mount()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this have to do with 8.5?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, when a collection had a mount, it would use null as the array offset (the key), which isn't supported in PHP 8.5.
We don't need collections without mounts here, so the easiest solution is filtering them out.
This pull request adds PHP 8.5 compatibility.