Skip to content

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Nov 20, 2025

This pull request adds PHP 8.5 compatibility.

@duncanmcclean
Copy link
Member Author

The failing PHP 8.5 tests should pass once laravel/framework#57822 has been tagged.

@duncanmcclean duncanmcclean changed the title [5.x] PHP 8.5 Support [5.x] PHP 8.5 Compatibility Nov 21, 2025

return Blink::once('mounted-collections', fn () => $this
->all()
->filter(fn ($collection) => $collection->mount())
Copy link
Contributor

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?

Copy link
Member Author

@duncanmcclean duncanmcclean Nov 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants