Skip to content

0.17.6

Choose a tag to compare

@dereuromark dereuromark released this 26 Apr 10:40
· 136 commits to master since this release
0c24b92

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: false or to adjust your docblocks to specify the type of generic class/object.

For project annotations: