21CTO
21CTO
Sep 18, 2025 · Backend Development

What’s New in PHP 8.5? Explore Pipelines, NoDiscard, Array Helpers & More

PHP 8.5 arrives with a suite of developer‑friendly enhancements—including a pipeline operator that eliminates temporary variables, a NoDiscard attribute that enforces return‑value usage, new array_first/array_last helpers, constant‑expression closures, global constant attributes, an exception‑handler getter, IntlListFormatter, CLI diff tools, a build‑date constant, and refined final property syntax—making everyday coding cleaner, safer, and more efficient.

Backend DevelopmentException HandlingPHP
0 likes · 9 min read
What’s New in PHP 8.5? Explore Pipelines, NoDiscard, Array Helpers & More
Open Source Tech Hub
Open Source Tech Hub
Jul 17, 2025 · Backend Development

How PHP’s #[\NoDiscard] Attribute Prevents Silent Return‑Value Bugs

The article explains PHP 8.5’s #[\NoDiscard] attribute, showing how it forces developers to handle function return values, provides syntax and usage examples, demonstrates real‑world scenarios, and describes ways to suppress warnings when the return value is intentionally ignored.

attributenodiscardphp8.5
0 likes · 5 min read
How PHP’s #[\NoDiscard] Attribute Prevents Silent Return‑Value Bugs