Re: Passing null to parameter
| From: | Kamil Tekiela | Date: | Sun, 29 Oct 2023 11:14:04 +0000 |
| Subject: | Re: Passing null to parameter | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121506@lists.php.net to get a copy of this message | ||
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.