- Issue created by @kevin.dutra
- πΊπΈUnited States cmlara
This wouldn't really be a false positive.
myMethod(string $var = null)
is indeed missing the nullable parameter?string
This is a PHP Language change not a documentation change. Unlike with phpstan where a
@param
could help narrow the data, PHPCS is alerting you that this line will be invalid PHP when PHP 9 is eventually released.(suggest this is "works as designed")
- πΊπΈUnited States kevin.dutra
Oh geez, clearly I missed what this sniff was aimed at. Thanks for the explanation! Closing this out.