Null and false can be used as stand-alone types in PHP 8.2

1 · Amit Merchant · April 24, 2022, 7:03 a.m.
The latest version of PHP, PHP 8.1, has been around for quite some time and it comes packed with some great new features and enhancements. How? Why? Gotcha After the release of PHP 8.1, the next release that developers are keeping their eyes on is PHP 8.2 and it has got some interesting RFCs accepted recently. One of them is the possibility to use null and false as stand-alone type declarations, wherever type declarations are currently allowed in the language. How? From PHP 8.2, if you think s...