No Hidden Nullable

no-email (Damien Seguy), Damien Seguy
Tue, 18 Mar 2025 00:00:00 +0000

A hidden nullable is a, now deprecated, PHP features where typed parameters with a default value of ``null`` are automatically nullable.
Well, that is true only if PHP can spot the ``null`` at compilation time: when the ``null`` is hidden (sic) in a constant, then it is not recognized, and it leads to a Fatal Error.
This is due to PHP postponing the evaluation of the constant to execution phase.