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.
I’m Steven, a software engineer and technical leader based in the west coast of Scotland. I’m the CTO at Digitonic, where we develop technologies for the investor relations and igaming industries.
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.
A Claude Cowork scheduled task that reads Sentry errors, triages them via Linear, implements fixes in your Laravel codebase, and opens a GitHub PR — without you lifting a finger until review.
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.