Placeholder: PHP 8.5 upgrades TODO list #1781
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is not to be merged, and is here mostly because the project has no issue tracker, so I'm reporting discovered PHP 8.5 upgrade path missing bits, which were discovered by @kukulich during the development of Roave/BetterReflection#1515
#[\NoDiscard]
attribute ( https://wiki.php.net/rfc/marking_return_value_as_important )Closure#getCurrent()
method ( Implement Closure::getCurrent() to retrieve current closure php/php-src#18167 )Attribute::TARGET_CONSTANT
constant ( https://wiki.php.net/rfc/attributes-on-constants )array_first
function ( https://wiki.php.net/rfc/array_first_last )array_last
function ( https://wiki.php.net/rfc/array_first_last )get_error_handler
function ( https://wiki.php.net/rfc/get-error-exception-handler )get_exception_handler
function ( https://wiki.php.net/rfc/get-error-exception-handler )clone
function ( https://wiki.php.net/rfc/clone_with_v2 )PHP_BUILD_DATE
constant ( Add PHP_BUILD_DATE constant php/php-src#16747 )IMAGETYPE_SVG
constant ( Implement #71517: Implement SVG support for getimagesize() and friends php/php-src#16670 )IMAGETYPE_HEIF
constant ( php/php-src@dfac2da )