Repository navigation
[PHP 8.5] Add array_first(), array_last() and other news coming up 🥳 #9265
Description
Activity
- changed the title
[-][PHP 8.5] Add array_first(), array_last() and other news coming up[/-][+][PHP 8.5] Add array_first(), array_last() and other news coming up 🥳 [/+]on Jul 16, 2025 Great! Keep it open for the rest of features
PHP 8.5 deprecate semicolon in switch case, see https://3v4l.org/SHboE/rfc#vgit.master
see https://wiki.php.net/rfc/deprecations_php_8_5#languagesyntax_deprecations
$a = 'A'; switch ($a) { - case 'A'; + case 'A': echo 'test'; }Downgrade rule first for final property promotion is at PR:
Reacted by Tomas VotrubaSo we need a
FinalPropertyPromotionRector, right?public function __construct( - /** @final */ - public string $id + final public string $id ){}
Yes, but seems need to be optional, since it means parameter can't be override by child. So, can't be part of php85.php set, user that want it need to apply manually.
Ok
PHP 8.5 deprecate backticks over shell_exec function call
see https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec
Reacted by ArshidClosing as most of these are implemented and pipe has opened PR.
For next PHP 8.5 features, simply open a PR 👍github-actions commented
on Mar 15, 2026 on Mar 15, 2026 – with GitHub ActionsContributorMore actionsThis issue has been automatically locked because it has been closed for 150 days. Please open a new issue if you have a similar problem.
- locked as resolved and limited conversation to collaborators
on Mar 15, 2026
Ref https://amitmerchant.com/everything-that-is-coming-in-php-85/
Done
Todo
* [ ] Final property promotionsee reasoning PR: