Skip to content

chore(deps-dev): Update vimeo/psalm requirement from ^6.0 to ^7.21 - #16

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vimeo/psalm-tw-7.21
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vimeo/psalm-tw-7.21

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on vimeo/psalm to permit the latest version.

Release notes

Sourced from vimeo/psalm's releases.

7.21.1

Fixes

Taint analysis

  • No crash ("Undefined array key -1") when an array whose values a foreach wrote back under their keys reaches a cast. (#14965, @​orklah)
  • An unpacked element taints only the parameter it fills: in f(...[safe(), $_GET['x']]), $first is no longer tainted. (#14979, @​shu-chen-dot-ca)
  • What array_walk() and array_walk_recursive() callbacks write to their by-reference param flows into the array. (#14963, @​danog)

Templates and type variables

  • class-string<T>, key-of<T>, value-of<T>, T[K] and properties-of<T> resolve when new binds the template: (new ReflectionClass(new stdClass()))->getName() is class-string<stdClass>. An inherited self<T&C> assertion narrows a subclass again. (#14981, @​orklah)
  • No infinite recursion when an object is added to its own template, and properties-of<T> over several classes includes the properties of each. (#14982, @​orklah)
  • A class-string<T>|T param given a class string binds T to the class only, without a false IncompatibleTypeParameters. (#14994, @​orklah)
  • No hang when a class with @template T of static calls a method returning T on $this or static::. (#14978, @​shu-chen-dot-ca)

Narrowing, loops and arrays

  • $x != "" and $x != 0 remove null and the loosely equal bool from $x. (#14995, @​orklah)
  • A variable that a nested foreach over a non-empty list assigns before every break is defined after it. (#12439, @​jarstelfox)
  • A variable read where it is undefined is no longer possibly undefined on the loop's next iteration, and with extract() a variable assigned on one path is no longer read as possibly undefined. (#12442, @​jarstelfox)
  • No false PossiblyUndefinedVariable on $r?->m() ?? [], or TypeDoesNotContainNull on $r?->p ?? [], when $r may be undefined. (#14998, @​orklah)
  • A list written under keys it already has (its own foreach key, array_key_last()) keeps its shape. (#15009, @​orklah)
  • $a + [...] combined with a shape: no false PossiblyUndefinedArrayOffset on keys both declare, and no InvalidArgument when it is passed to a sealed shape param. (#15002, @​orklah)
  • Offsets of DOMNamedNodeMap, Dom\NamedNodeMap, Dom\NodeList and Dom\HTMLCollection are read by position or name instead of reporting InvalidArrayAccess. (#14535, @​jirkace)

Properties and constructors

  • $object::$prop is checked as a static fetch on the object's class, so undeclared and instance-only properties report UndefinedPropertyFetch. (#12046, @​HenkPoley)
  • No false MissingConstructor for a subclass inheriting the real constructor of a class a stub declares without one, and no PropertyNotSetInConstructor after Ancestor::__construct(). (#15001, @​orklah)
  • @psalm-suppress UndefinedConstant applies to constants in docblock types (@var int-mask<NO_SUCH_CONSTANT>). (#13540, @​alies-dev)

Purity

  • The DateTime and DateTimeImmutable constructors require only the time capability, and the DateInterval constructor is pure. (#14962, @​jirkace)

Stubs

Language server and --alter

  • The language server keeps the types and references of a file without class methods when it analyses another file, so hover and go-to-definition keep working there. (#15003, @​danog)
  • --alter writes only native types the analysed PHP version supports (no object below 7.2) and writes int|string for array-key from PHP 8.0. (#14933, @​orklah)

Internal changes

... (truncated)

Commits
  • 9c65a30 Merge pull request #13540 from alies-dev/alies-dev/invaliddocblock-for-int-ma...
  • c2994e8 Merge pull request #13019 from alies-dev/alies-dev/php-new-const
  • e54e777 Merge pull request #14933 from orklah/native-type-versions
  • e39e0c2 Merge branch 'master' into alies-dev/php-new-const
  • 45f91d2 Require psalm/psalm-plugin-api 0.5.3
  • 50efd6c Merge pull request #15002 from orklah/fix-unsealed-sealed-optional-key
  • 58e3e23 Suppress the coercions Psalm now reports on generic type params
  • 31577a6 Keep the parsed extra fields of a shape apart from their parse trees
  • b0b8070 fix(type-checker): honour @​psalm-suppress for undefined constants in docblock...
  • b396fbb Check the extra fields of a shape once they are parsed
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@6.0.0...7.21.1)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-version: 7.21.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants