- Issue created by @Finn Lewis
- First commit to issue fork.
- 🇳🇱Netherlands johnv
Your solution seems ok:
function foo(?$var = NULL) {}
or
function foo(array|null $var = NULL) {}However, did you only encounter this one occurrence? I count about 12 occurrences to be corrcted.
- 🇳🇱Netherlands johnv
Thank you.
ITMT I coincidentally did a check on code styling, and all occurrences were reported by phpstan, and fixed in #3219111-114: Clean code → .
You will find the result in current dev version or upcoming version 1.22 - 🇬🇧United Kingdom Finn Lewis
Thanks @johnv!
Any chance of the 1.22 release to help us on our way to PHP 8.4 happiness?
Many thanks,
Finn
Automatically closed - issue fixed for 2 weeks with no activity.