A code like this already throws a fatal error. function enc(string $a){} enc(null);
The only thing remaining to be fixed in PHP 9 is to make this error consistent on all function invocations. > I didn't realise the payment gateway doesn't always provide the order reference Well, there you go. This deprecation message actually informed you of something. Without it, you would never know that you have a logical error in your code. It works as intended. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php