PHP 8.5 #[\NoDiscard]: Catch “Ignored Return Value” Bugs Before They Ship

A code-first guide to PHP 8.5’s #[\NoDiscard] warnings, the new (void) cast, and practical patterns for Results, immutability, and safer…