packagist vimeo/psalm 7.24.1

2 hours ago

What's Changed

Fixes

  • fix(types): an addition or subtraction with an unbounded side may overflow to a float by @jirkace in #15248
  • fix(array_map): infer the zip of arrays that aren't sealed shapes by @shu-chen-dot-ca in #15191
  • perf(language-server): read a message body at once instead of byte by byte by @tm1000 in #15242
  • fix(language-server): accept $/cancelRequest notifications by @tm1000 in #15394
  • Fix crash on a method call on a class implementing an undefined interface by @orklah in #15429
  • Say that the array is set after !empty() of an offset without an id by @orklah in #15432
  • Bind static to the class of a receiver that isn't late static by @orklah in #15431
  • Read an offset of an iterable from its array and its Traversable by @orklah in #15430
  • Remove Context::$fully_assigned_var_ids by @orklah in #15326
  • Fix: boolean-variable narrowing kept after reassignment in an elseif condition, a reference binding, or an && before || by @alies-dev in #12291
  • fix(reconciler): an optional object shape property may stay unset after an alternative of !isset by @jirkace in #15424
  • fix(assertions): get_class($o) !== $t of a template class-string narrows $o where it is false by @jirkace in #15408
  • fix(arrays): a write to an array shape in a union with an object updates the shape by @jirkace in #15436

Internal changes

  • Keep the references an if/else rebinds in its IfScope by @orklah in #15329
  • Require psalm/psalm-plugin-api 0.5.4 by @orklah in #15455
  • Tests: Check how a long match chain is analysed instead of timing it by @alies-dev in #15464

Full Changelog: 7.24.0...7.24.1

Don't miss a new psalm release

NewReleases is sending notifications on new releases.