php 8.4 - implicit nulls are deprecated
Xon opened this issue · comments
Xon commented
Describe the bug
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Using php 8.4-dev, implicit nulls in function arguments will generate deprecation notices.
An example of an implicit null:
function foo(T $var = null) {}
The fix:
function foo(?T $var = null) {}
Şerban Ghiţă commented
@Xon the 3.74.x branch is for PHP 7.x only
Use 4.8.x for PHP 8, I think this patch can be submitted there