Closed bramslob closed 2 years ago
PHP 8.1 includes a new attribute to side-step those warnings when needed. (They're deprecations only; if they're blocking your system, then you have your phpunit settings set too strict.) I took the opportunity to do some other type cleanup as well, and add PHPStan. The 3.6 release is all-green on PHP 8.1.
Cheers.
When upgrading an app to PHP 8.1, while using version 3.5.1, we see the following issues:
Since some of the signatures will now include the mixed argument & return type (like
offsetGet($offset)
->offsetGet(mixed $offset): mixed
), this will mean dropping PHP 7.*Maybe a new major version could be created to accommodate this?