Everything on php-8.5.
5 articles tagged php-8.5 — sorted newest first.
PHP 8.5 Deprecations Cheat Sheet — What to Fix Before Upgrading
PHP 8.5 ships with a batch of deprecations that will become hard errors in PHP 9.0. Here's the complete list with one-line fixes and a Rector command to automate the scan.
PHP 8.5 array_first and array_last — Clean Up Your Collection Fallbacks
PHP 8.5 adds two long-overdue functions that eliminate the awkward workarounds for accessing the first or last element of an array.
Stop Using parse_url(): PHP 8.5's URI Extension Explained
PHP 8.5 ships a built-in URI extension that replaces parse_url() with immutable, type-safe objects. No third-party package needed.
PHP 8.5 clone with: Updating Readonly Objects Without Boilerplate
PHP 8.5 lets you pass an array to clone() to update properties in one expression. Here's how it replaces wither method boilerplate — and the gotchas you need to know first.
PHP 8.5 Pipe Operator: Clean Function Chaining in One Line
PHP 8.5's |> operator lets you chain functions left-to-right instead of nesting them inside-out. Here's how it works and where it breaks down.