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

Everything on attributes.

3 articles tagged attributes, sorted newest first.

php June 8th, 2026

Deprecate Your Own Code with PHP 8.4's #[\Deprecated] Attribute

PHP 8.4's #[\Deprecated] attribute turns invisible docblock deprecations into real runtime warnings that reflection and static analysis can see. Here's how to use it in a Laravel package.

6 min read →
php June 2nd, 2026

PHP 8.5 #[\NoDiscard]: Stop Silently Ignoring Return Values That Matter

PHP 8.5 ships a new #[\NoDiscard] attribute that warns when you forget to use a function's return value. Here is how to apply it to your own immutable builders — and why (void) is the only safe way to suppress it.

7 min read →
php May 3rd, 2026

PHP Custom Attributes in Practice: Beyond Laravel's Built-ins

Laravel 13 ships dozens of built-in PHP attributes, but the docs are quiet on building your own. Here are the patterns I use in production for validation, auth, and auto-discovery.

10 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