Skip to content

Conversation

@mattiabasone
Copy link
Owner

No description provided.

redbeardcreator and others added 12 commits December 8, 2024 23:21
This removes the deprecations introduced in PHP 8.4
PHP 8.4 makes not doing so a deprecation.
PHP 8.4 deprecates the use of E_USER_ERROR. This can mangle the exception thrown. So, skip the test
in PHP 8.4. It may be possible to fix up what's being thrown, but I haven't found anything.

Since using trigger_error for user errors is now deprecated, error_to_exception() should probably be
deprecated as well. But that's a greater decision than making sure tests work correctly.
PHP 8.4 has changed the format of __FUNCTION__ for closures, at least.
PHP 8.4 deprecates the implicit conversion from doubles to ints when doing so would lose precision.
However, disallowing doubles as array keys in Functional would be a BC break.
@mattiabasone mattiabasone marked this pull request as ready for review September 1, 2025 10:18
@mattiabasone mattiabasone changed the title Php 8.4 migration Add support for PHP 8.4 and 8.5 Sep 1, 2025
@mattiabasone mattiabasone merged commit 28346f8 into main Sep 1, 2025
10 checks passed
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