Modern PHP Features Most Developers Still Aren't Using (8.4 and 8.5)
You upgraded the runtime to PHP 8.5 but your code still reads like 7.4. Here are the modern PHP features (property hooks, asymmetric visibility, and array predicates from 8.4, plus the pipe operator, clone with, and array_first/array_last from 8.5) that most developers sleep on, with real syntax and the Magento tie-in.