Open mbolli opened 1 month ago
PHP 8.4 deprecates implicitly nullable types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Which means to set a default value we have to explicitly allow null or ?type:
null
?type
public function foo(?bool $dryRun = true) {}
Which could lead to this error:
Parameters should have "bool" types as the only types passed to this method
PHP 8.4 deprecates implicitly nullable types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Which means to set a default value we have to explicitly allow
null
or?type
:Which could lead to this error: