Repository navigation
0.17.6
Fixes
- Fixed missing newline separation for class constants.
- Fixed method annotation sniff when using final classes - thanks to @alfredbez.
Improvements
- Full generics support for all object collections.
- Improved method annotation sniff - thanks to @alfredbez
For generics please make sure:
- To have updated all non-generic docblocks first.
\SomeObject|some-type[]that is actually a true "object or array" case must be noted as\SomeObject|array<some-type>. If you do not do this before this update, it will change it as per expectation regarding legacy syntax. - You update your PHPStan files to either include
checkGenericClassInNonGenericObjectType: falseor to adjust your docblocks to specify the type of generic class/object.
For project annotations:
- If you have a custom namespace and do not use the default and recommended
Pyznamespace, you need to add a few configs to let the sniffer know about this and make the correct class usage assessment: https://github.com/spryker/code-sniffer#configure-custom-namespaces