packagist vimeo/psalm 7.26.0

one hour ago

What's Changed

Features

  • feat(language-server): apply every client setting, also pushed ones by @tm1000 in #15540

Fixes

  • Narrow the bound of a template when an offset of it is known to be set by @MikeFTV in #15622
  • Don't report MissingAbstractPureAnnotation on abstract methods of a class with a purity annotation by @shu-chen-dot-ca in #15628
  • Report an undefined static property bound by reference by @arsalankhan786777 in #15583
  • Infer a generator's return type when its yield is inside echo, a condition or another statement's expression by @shu-chen-dot-ca in #15607
  • fix(language-server): analyze the saved text after a save without the text by @tm1000 in #15642
  • fix(reconciler): is_resource() keeps a template whose bound has a resource by @jirkace in #15278
  • fix(types): a single letter combined with another non-empty string is a non-empty string by @jirkace in #15264
  • fix(nullsafe): isset() and empty() of a nullsafe fetch with an offset narrow the receiver by @arsalankhan786777 in #15575
  • fix(closure): keep the declared literals a called closure does not change by @arsalankhan786777 in #15609
  • Report an override that drops a mixed return type by @shu-chen-dot-ca in #15610
  • fix(template): a rejected extends argument is still the argument the author gave by @jirkace in #15274
  • fix(types): a type after the ... of a shape is an InvalidDocblock by @jirkace in #14597
  • fix(mixed): no MixedAssignment for a variable the following if types on every way through it by @jirkace in #14630
  • fix(templates): a null or false value assigned to a type variable records a bound by @jirkace in #15247
  • fix(types): the class-string of an enum case is the class-string of the enum by @jirkace in #15253
  • fix(unused): an empty private constructor without parameters is not an unused constructor by @jirkace in #15453
  • fix(templates): the caller's static given to a template is not rebound to the called class by @jirkace in #15401
  • fix(reconciler): a subclass asserted of a generic parent class takes the type arguments of the parent by @jirkace in #15387
  • fix(array_walk): give the untyped parameters of the callback the value and the key by @jirkace in #15419
  • fix(templates): a contravariant argument is read through its bound by a first-class callable, and is exact when it is the bound by @jirkace in #15402
  • fix(templates): class-string of a method called on a template receiver is class-string of the template by @jirkace in #15399
  • fix(types): a combined generic object or iterable is only intersected with what all its members are by @jirkace in #15374
  • fix(scanner): a class_exists() guard is true for a class the file declared before it by @jirkace in #15457
  • fix(traits): no InvalidStaticInvocation for a constructor inherited from a trait by @Robotcell in #15115

Other changes

  • Keep PHPUnit below 13.5 until paratest supports it by @orklah in #15656
  • test(templates): a call on a receiver that isn't late static leaves no &static in the result by @jirkace in #15650

New Contributors

Full Changelog: 7.25.1...7.26.0

Don't miss a new psalm release

NewReleases is sending notifications on new releases.