PHP 8.5 NoDiscard Is a Small API Safety Feature Posted on May 11, 2026 By PHP, Programming PHP 8.5’s NoDiscard attribute gives library and application code a direct way to say that ignoring a return value is probably a bug. Share: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on Tumblr (Opens in new window) Tumblr Share on Pinterest (Opens in new window) Pinterest Share on LinkedIn (Opens in new window) LinkedIn Share on Reddit (Opens in new window) Reddit