packagist vimeo/psalm 3.7.0
Support PHP 7.4

latest releases: 5.x-dev, dev-master, dev-isTypeContainedByType_flags...
4 years ago

Features

PHP 7.4 is now fully supported — property types, arrow functions, return type covariance/param type contravariance, null coalescing assignment, and the array spread operator.

Bugfixes

  • Add --find-unused-variables option on the command line, to match documentation (#2354)
  • Psalter: Don’t remove actually-used variables with the UnusedVariable fixer (#2355)
  • Always analyse new XXX declarations, even when method is not known (#2358)
  • Always scan classes referenced in shape properties - thanks @weirdan (#2331)
  • Catch possible class-not-found errors when fetching method (#2363)
  • Add support for single literal in docblocks (#2362)
  • Allow installation alongside symfony/console v5 - thanks @LeSuisse (#2366)
  • Fix signature of imagepng - thanks @k2rn (#2373)
  • Improve output of @list(...) (#2374)
  • Allow a more generic iterable when yielding (#2353)
  • Allow using a covariant template param in a mutation-free context (#2361)
  • Refine list types with object-like array assertions (#2357)
  • Fix typo in InfiniteIterator type definition - thanks @lstrojny (#2378)
  • Improve return type inference for array_column, array_pad, array_chunk, array_map - thanks @ShiraNai7 (#2377)
  • Prevent string docblock param type from matching for a callable signature param type (#2380)

Don't miss a new psalm release

NewReleases is sending notifications on new releases.