github vimeo/psalm 7.24.0

one hour ago

What's Changed

Features

  • Intersect a template with an array shape by @orklah in #15231
  • Read more PHPDoc forms (constant masks with *, self:: and static:: in the @template bound of a method, ... in a shape, and shapes without fields, enum-string, and other) by @alies-dev in #15235

Fixes

  • Resolve method calls named by known strings by @orklah in #15220
  • fix(arguments): no crash for array_filter() and siblings called with only a callback by @jirkace in #15288
  • Forget the detached mark of a reference when it is rebound or released by @orklah in #15331
  • perf(loops): a property not in scope at the start of a pass doesn't take a propagation pass by @orklah in #15365
  • Don't narrow the receiver of a method call when an argument writes its variable by @jirkace in #15367
  • fix(extensions): defined() of a class constant guards the extension of the class by @jirkace in #15315
  • fix(constants): a circular class constant as a template default no longer crashes by @jirkace in #15321

Internal changes

  • Link issue locations in the perf report to the analysed code by @orklah in #15230
  • Only look for isset-guarded properties when the constructor returns early by @orklah in #15327
  • Show memory with one decimal in the perf report by @orklah in #15337
  • Bump the perf corpus Symfony to 8.2.0 by @alies-dev in #15388

Full Changelog: 7.23.0...7.24.0

Don't miss a new psalm release

NewReleases is sending notifications on new releases.