On 14/11/2021 11:48, Pierre Joye wrote:
Also I do see it as a kind of strict mode addition and the depreciation as well could be strict mode only.
A quick reminder that PHP has no "strict mode". It has a "strict_types" declaration, which is probably misnamed, and should be something like "scalar_types=error" vs "scalar_types=coerce".
Suggestions to add a more general "two modes for the whole language" approach have generally gone down in flames.
Suggestions to add other declarations tend to run into discussions of namespace-scoped declares / project configuration / etc
Regards, -- Rowan Tommins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php