1.3.0
Improvements
Generics syntax instead of legacy array syntax
The old string[]
syntax is deprecated and replaced by generics, as it can now also focus on key instead of just value:
array<string>
(list) vsarray<string, string>
(assoc array)- It is recommended not to upgrade object collections outside of \ArrayObject and \ArrayAccess etc, as IDEs do not yet understand those. Here we can keep
\MyCollection|\MyObject[]
as legacy typehint in place. Custom@phpstan-*
tags on top can be "clean" already.
PHP 7.3+
With PHP 7.3 being already EOL soon, it only makes sense to drop the already very long EOL 7.2 version.
It is already PHP 8.1 tested, however, as well.
More quality sniffs
Quite a few more sniffs to make sure the code is also semantically checked even before any static analyzer like PHPStan/Psalm look at it.