SR
Steven Richardson
About Articles. Skills Tools
Articles › closures
TAG ARCHIVE

Everything on closures.

1 article tagged closures, sorted newest first.

php July 29th, 2026

Use Closures in Constant Expressions in PHP 8.5

PHP 8.5 finally lets a closure live inside a constant expression — attribute arguments, default values and class constants. The static, no-use restriction is where people trip.

7 min read →
← Back to all articles
SR
Steven Richardson

CTO at Digitonic. Writing notes on Laravel, architecture, and the craft of leading software teams — from the west coast of Scotland.

Site

Home About Articles Skills Tools

Elsewhere

GitHub LinkedIn X RSS
© 2026 Steven Richardson
Terms Privacy Built with Laravel + Tailwind