You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've just tried to upgrade PHP to 8.4, but the code in the branch v4 which I have been successfully and reliably using on PHP 8.3 does not work with PHP 8.4.
The problem is: Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead.
There are multiple places in the library, which uses typehints with default null value. The typehint in PHP 8.4 needs to be nullable as well.
function test(string$param = NULL)
needs to become
function test(?string$param = NULL)
If you want, I can prepare a fix in a PR - I've done the upgrade myself with Rector...
The text was updated successfully, but these errors were encountered:
Hello,
I've just tried to upgrade PHP to 8.4, but the code in the branch v4 which I have been successfully and reliably using on PHP 8.3 does not work with PHP 8.4.
The problem is: Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead.
There are multiple places in the library, which uses typehints with default null value. The typehint in PHP 8.4 needs to be nullable as well.
needs to become
If you want, I can prepare a fix in a PR - I've done the upgrade myself with Rector...
The text was updated successfully, but these errors were encountered: