Issue Task Resolved

#110289Cleanup some leftover remarks for older PHP versions

Wouter Wolters 07/24/26, 19:45 updated 07/25/26, 12:35

Description

- Update TreeNodeCollection::asort() from bool plus #[ReturnTypeWillChange] to the native-compatible true return type; remove its obsolete TODO.

- In DateTimeFactory, catch only DateMalformedStringException; PHP 8.3+ no longer requires the generic Exception fallback.

- Replace value-only $array[array_key_first(…)] and $array[array_key_last(…)] expressions with array_first() and array_last(). Preserve calls where the key itself is required or assigned.

- Fix remaining stale PHP-version guidance, notably the PHP 8.3 example in runTests.sh, and make the lazy reaction documentation example readonly, now supported by Symfony’s native PHP lazy objects.

Reviews 1