Skip to content

build(deps-dev): Bump vimeo/psalm from 7.13.2 to 7.23.0 in /vendor-bin/psalm - #1303

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vendor-bin/psalm/vimeo/psalm-7.23.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vendor-bin/psalm/vimeo/psalm-7.23.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bumps vimeo/psalm from 7.13.2 to 7.23.0.

Release notes

Sourced from vimeo/psalm's releases.

7.23.0

Features

  • Unions of sealed array shapes stay apart: Psalm keeps array{type: "card", last4: string}|array{type: "bank", iban: string} as two shapes instead of merging them into array{iban?: string, last4?: string, type: 'bank'|'card'}, so a check of one key tells which other keys are there. Comparing a tag, isset(), array_key_exists(), count() and switch pick the shape. (#15156, @​jirkace)
    /** @param array{type: "card", last4: string}|array{type: "bank", iban: string} $method */
    function describe(array $method): string {
        if ($method["type"] === "card") {
            return "Card " . $method["last4"]; // no issue (was PossiblyUndefinedArrayOffset)
        }
        return "Bank " . $method["iban"];      // no issue (was PossiblyUndefinedArrayOffset)
    }
    /** @​param array{type: "card", last4: string}|array{type: "bank", iban: string} $method */
    function wrong(array $method): string {
    if ($method["type"] === "card") {
    return $method["iban"];            // InvalidArrayOffset (was PossiblyUndefinedArrayOffset)
    }
    return "";
    }
    Unsealed shapes, unions of more than 8 shapes, and a shape union whose offset is written or unset are still merged into one shape.
  • in_array() narrows the array: checking for a single known value (null, true, false, a scalar literal or an enum case) narrows the haystack. (#15152, @​rvyyv-n)
    enum Status { case Active; case Banned; }
    /** @​param list<string|null> $names */
    function joinNames(array $names): string {
    if (in_array(null, $names, true)) {
    throw new InvalidArgumentException("A name is missing");
    }
    return implode(", ", $names); // $names: list<string> (was list<null|string>)
    }
    /** @​param list<Status> $statuses */
    function check(array $statuses): void {
    if (!in_array(Status::Banned, $statuses, true)) {
    // $statuses: list<enum(Status::Active)> (was list<Status>)
    }
    }
    A loose in_array(null, $names) also rules out '', which is loosely equal to null: $names becomes list<non-empty-string>.
  • array_walk() and array_walk_recursive() callbacks are checked against the values, keys and extra argument the functions pass them. (#15167, @​backendArchitect)
    /** @param array<string, int> $stock */
    function report(array $stock): void {
        array_walk($stock, static function (int $count, string $sku, string $prefix): void {
            echo $prefix . $sku . ": " . $count;
        }, "SKU ");                                                    // no issue
        array_walk($stock, static function (string $count): void {}); // InvalidScalarArgument: Parameter 1 of closure passed to function array_walk expects string, but int provided

... (truncated)

Commits
  • c966ac0 Merge pull request #15234 from alies-dev/windows-opcache-cache-id
  • d05b774 test(e2e): revert the plugin file of its own per test of files changed during...
  • af1393d fix(restarter): no opcache file cache for restarted Psalm processes on Windows
  • 1fd4cfd Merge pull request #15229 from orklah/reconcile-empty-array-shape-identical
  • b02c4b1 fix(restarter): give each Psalm process its own opcache on Windows
  • e5264a9 Mark getGenericArrayParams() mutation-free
  • be98b1f Intersect the values of two arrays that can be empty instead of keeping only []
  • e991826 Merge pull request #15221 from orklah/impossible-is-type-on-expression
  • ee0bcd0 Let a condition narrow arrays that can both be empty and object shapes to non...
  • a4cce7c Keep the empty array out of the disjointness of conditional types
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 7.13.2 to 7.23.0.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@7.13.2...7.23.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-version: 7.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants