Open cracksalad opened 1 month ago
What's the impact of this on people who are using PHP versions less than 8.4?
What's the impact of this on people who are using PHP versions less than 8.4?
As far as I know, prior to PHP 8.4 foo(?string $str = null)
and foo(string $str = null)
are exactly the same. The additional ?
is just syntactic sugar. So it should be absolutly no difference for PHP < 8.4.
@cracksalad replied:
What's the impact of this on people who are using PHP versions less than 8.4?
As far as I know, prior to PHP 8.4
foo(?string $str = null)
andfoo(string $str = null)
are exactly the same. The additional?
is just syntactic sugar. So it should be absolutly no difference for PHP < 8.4.
OK, that's good! 👍
Fixed all implicit nullable types to be explicit because the implicit way is deprecated in PHP 8.4