
π PHP 8.5: What Developers Need to Know Before Upgrading
PHP 8.5 brings new improvements for modern web development. π Learn what developers should check before upgrading, including Laravel compatibility, C...
Tag archive

PHP 8.5 brings new improvements for modern web development. π Learn what developers should check before upgrading, including Laravel compatibility, C...

PHP 8.5 pipe operator chains meet Laravel Collections. An honest look at where Spatie's new Piper library beats collect() chains and where it still loses.

Pipe operator, clone with, #[\NoDiscard], the URI extension, closures in const exprs. What each one replaces in day-to-day PHP.

PHP 8.5 ships a real URL parser. Here's where parse_url() lies, and how the RFC 3986 and WHATWG classes fix it in an adapter.

PHP 8.5's IntlListFormatter turns arrays into locale-aware 'A, B, and C' strings and retires the implode-and-glue helper that only spoke English.

PHP 8.5 turns years of soft-deprecations into loud ones. Here are the changes that actually break code, plus a Rector-driven upgrade path.

PHP 8.5 lets you read the current error and exception handlers without side effects. Compose them, and finally test your error boundary.

PHP 8.5 lets you mark promoted constructor params final. Here is why that closes an override gap readonly never covered.

PHP 8.5 finally ships array_first() and array_last(). Here's what they replace, what they fix, and the one empty-array trap to know.

Fatal errors used to die with a filename and a line number. PHP 8.5 prints the whole call stack. Here is what changes for production debugging.

PHP 8.5's curl_share_init_persistent keeps DNS, TLS, and TCP connections alive across FPM requests. Here's how to wire it into an HTTP adapter.
![PHP 8.5 #[\DelayedTargetValidation]: Attributes Across a Version Gap](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6zoon3gpaqn3jnvwh8q1.png)
PHP 8.5's #[\DelayedTargetValidation] defers built-in attribute target checks to runtime, so library code survives a multi-version window.