github vimeo/psalm 7.16.0
7.16.0 Star projection

34 minutes ago

What's Changed

Features

Fixes

  • fix(templates): localize an inherited property through the type the child passes to its parent by @jirkace in #14487
  • Fix (templates): bind a composed @extends argument on inherited members by @alies-dev in #14558
  • Fix: callables of a non-generic child of a generic class keep the parent's template unbound by @alies-dev in #14578
  • Fix: * receiver accepts [] for parameters that require an element by @alies-dev in #14619
  • UX: a crashing worker says which file it was processing by @jirkace in #14651
  • Fix: array_map() infers list for an invokable object callback by @alies-dev in #14654
  • Fix: an invokable object, a function name or an array passed as a Closure is only ArgumentTypeCoercion by @alies-dev in #14657
  • Fix: an intersection whose later member has __invoke isn't callable by @alies-dev in #14610
  • fix(references): --find-references-to finds the calls of a function by @jirkace in #14648
  • fix(templates): new infers never for a covariant template nothing can constrain by @jirkace in #14449

Docs

  • Make the docs examples self-contained and declare the config they need by @danog in #14585

Internal changes

  • Share duplicated code and drop dead code by @orklah in #14553
  • CI: Show issues changed in place as word diffs in the perf report by @alies-dev in #14568
  • CI: Show issues changed in place as a diff block in the perf report by @alies-dev in #14575
  • Merge master into star-projection by @alies-dev in #14581
  • Perf: scan workers send back only the stubs they added (8 threads, no cache: -9 % wall, -14 % memory on a large Laravel app) by @alies-dev in #12558
  • Fix: a failing pool task is reported again as an unhandled future (better exception stack traces) by @alies-dev in #14595
  • Merge master into star-projection by @alies-dev in #14602
  • Perf: record usage-inferred param types only for methods in the project directories (one thread: -8 to -15 % wall on apps that analyse their tests) by @alies-dev in #13901
  • Perf: fix exponential clause growth in || chains of str_starts_with() by @alies-dev in #14653
  • Perf: stop searching inside directories a ** entry already matched (config load 60 to 85 % faster with **/vendor-style entries) by @alies-dev in #14624
  • Perf: split a class docblock into lines once for all its @method tags (scan up to 5 % faster on classes with hundreds of @method tags, e.g. AWS SDK clients) by @alies-dev in #14620
  • Perf: warn at +10 % wall per project and +5 % in total by @alies-dev in #14655
  • Perf: add WordPress to the perf bench corpus, skip test- and CI-only PRs by @alies-dev in #14656

Full Changelog: 7.15.0...7.16.0

Don't miss a new psalm release

NewReleases is sending notifications on new releases.