Skip to content

Update dependency vimeo/psalm to v7 - #1028

Open
renovate[bot] wants to merge 1 commit into
8.28.xfrom
renovate/vimeo-psalm-7.x
Open

renovate[bot] wants to merge 1 commit into
8.28.xfrom
renovate/vimeo-psalm-7.x

Conversation

@renovate

@renovate renovate Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vimeo/psalm ^6.16.1 → ^7.24.1 age adoption passing confidence

Release Notes

vimeo/psalm

v7.24.1

Compare Source

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

Full Changelog: vimeo/psalm@7.24.0...7.24.1

v7.24.0

Compare Source

Features

  • Templates intersected with array shapes: T&array{id: int} is the type the template takes, with the keys of the shape added. A function can return what it was given plus new keys, and a param can require keys of a templated array. Psalm reported such an intersection as InvalidDocblock before. (#​15231, @​orklah)
    interface Users
    {
        /**
         * @template T of array
         * @param T $user
         * @return T&array{id: int}
         */
        public function save(array $user): array;
    }
    
    /**
     * @template T of array
     * @param T&array{id: int} $user
     */
    function userId(array $user): int
    {
        return $user['id'];
    }
    
    function register(Users $users): void
    {
        $user = $users->save(['name' => 'Ada']); // array{id: int, name: 'Ada'}
        echo userId($user);                      // no issue
        echo userId(['name' => 'Ada']);          // InvalidArgument
    }
    See Intersection types.
  • More PHPDoc type forms: Psalm reads these PHPStan forms instead of rejecting or misreading them. (#​15235, @​alies-dev)
    • * anywhere in a class constant mask (self::*_ACCESS), not only at the end.

      final class Access {
          public const READ_ACCESS = 1;
          public const WRITE_ACCESS = 2;
          public const DEBUG = 4;
      
          /** @param self::*_ACCESS $access */ // was InvalidDocblock
          public static function grant(int $access): void {}
      }
      
      Access::grant(Access::WRITE_ACCESS); // no issue
      Access::grant(Access::DEBUG);        // InvalidArgument: expects 1|2, but 4 provided
    • self:: and static:: in the @template bound of a method: self:: is the class the method is declared in (the using class for a trait method) and static:: the receiver's class. Psalm resolved both against the calling class, so $c->get(2) for @template B of self::REF_* was an InvalidArgument.

    • Shapes with ...<V> or ...<K, V> after their fields, and shapes without fields:

      Type Before After
      array{id: int, ...<string>} InvalidDocblock array{id: int, ...<array-key, string>}
      array{...} array<never, never> array<array-key, mixed>
      list{...<string>} array<never, never> list<string>
    • ? right after an operator: ?A&?B is A&B|null (was A|null), (A|?B)[] keeps B|null, and (T is ?int ? A : B) parses. ??int is an InvalidDocblock.

    • enum-string<HasLabel> accepts only enums: passing Plain::class of a class implementing HasLabel is an InvalidArgument.

    • int-mask-of<1|2|4> is 0|1|2|3|4|5|6|7, keywords work as shape keys (array{covariant: int}), and an extra type argument (key-of<array<int, string>, int>) is an InvalidDocblock instead of being dropped.

  • Methods named by known strings: Psalm resolves Foo::$m() and $foo->$m() when $m holds one or several known strings. The call returns what those methods return and is checked like a direct call. (#​15220, @​orklah)
    final class Report {
        public static function rows(): int { return 0; }
        public static function title(): string { return ""; }
    }
    
    function render(bool $short): void {
        $m = $short ? 'title' : 'rows';
        $r = Report::$m(); // int|string (was mixed)
    
        $n = 'footer';
        Report::$n();      // UndefinedMethod (was no issue)
    }
    A first-class callable on several classes, ($flag ? A::class : B::class)::make(...), is a closure of either method instead of only B::make().

Performance

  • A loop that passes a property to a call no longer takes an extra analysis pass. Nested loops multiplied that pass since 7.17.0: doctrine-orm's SqlWalker::walkSelectClause() analysed its inner loop 43 times instead of 23. (#​15365, @​orklah)
  • Property initialisation checks look for isset()-guarded properties only when the constructor returns early. (#​15327, @​orklah)

Fixes

Crashes
  • array_filter(), array_find() and their siblings called with only a named callback: argument no longer crash with Undefined array key 1. (#​15288, @​jirkace)
  • An argument that assigns null to the receiver of its method call ($h->foo($h = null)) no longer crashes Psalm. An argument that assigns a nullable value no longer narrows the receiver, so a later $h->get() is a PossiblyNullReference. (#​15367, @​jirkace)
  • A self-referencing class constant used as a template default (@template T of string = self::A with const A = self::A) is reported as CircularReference instead of crashing Psalm. (#​15321, @​jirkace)
Narrowing and reported issues
  • A call on a union of receivers (Foo|Bar) applies the @psalm-assert-if-true of one class's method only if the other class's method asserts it too. (#​15220, @​orklah)
  • After defined('ZipArchive::CREATE'), ZipArchive::CREATE is no MissingExtensionRequirement. (#​15315, @​jirkace)
  • ReferenceReusedFromConfusingScope is reported for a variable a loop detached from a reference, after it was released and bound again in another loop. (#​15331, @​orklah)

Internal changes

Full Changelog: vimeo/psalm@7.23.0...7.24.0

v7.23.0

Compare Source

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
        array_walk($stock, static function (int $count, int $sku): void {}); // InvalidScalarArgument: Parameter 2 … expects int, but string provided
        array_walk($stock, static function (int $count, string $sku, string $prefix): void {}, 5); // InvalidScalarArgument: Parameter 3 … expects string, but 5 provided
    }
  • @psalm-overload on constructors: new is checked like a method call. The overload the arguments fit binds the class templates, and arguments that fit no signature are reported against the last overload. The return type of an overload is not used. See @psalm-overload. (#​13355, @​jirkace)
    /** @template T */
    final class Box {
        /**
         * @psalm-overload (T $value)
         * @psalm-overload (T $value, int $count)
         */
        public function __construct(mixed $value, int $count = 1) {}
    }
    
    $box = new Box("apple"); // Box<'apple'> (was Box<mixed>)
    
    class Connection {
        /**
         * @psalm-overload (string $dsnOrHost)
         * @psalm-overload (string $dsnOrHost, int $port)
         */
        public function __construct(string $dsnOrHost, ?int $port = null) {}
    }
    
    new Connection("localhost", 3306); // no issue
    new Connection(3306);              // InvalidArgument, TooFewArguments (was InvalidScalarArgument)

Performance

  • A match with more arms than maxShapedArraySize no longer takes cubic time in the number of arms: 400 arms of an enum take 1.5 s instead of 30.5 s, and 753 arms 2.4 s instead of 184 s. (#​15161, @​jirkace)
  • Comparing two unions of many enum cases compares each case only with the case of the same key: 4096 cases take under 0.1 s instead of 15 s. (#​15162, @​jirkace)
  • Arithmetic on two large unions of int literals combines the results once: $a + $a on 250 literals takes under a second instead of 25 s. (#​15171, @​orklah)
  • Writing many literal offsets of one array skips comparing two different literal keys: a large application went from 36.5 s to 33.3 s. (#​15154, @​jirkace)

Fixes

Crashes
  • A callable param typed with key-of<TArr> of a template bounded by another template no longer crashes with count(): Argument #&#8203;1 ($value) must be of type Countable|array, null given when the template has no lower bound (an untyped closure param). (#​15212, @​jay23606)
Narrowing and reported issues
  • isset() and ?? on an array offset that always exists are reported as redundant: $a[0] ?? "" after $a = explode(",", $q) is a RedundantConditionGivenDocblockType. (#​12633, @​jirkace)
  • An is_*() or instanceof check of a literal or a call result that can never hold is reported like one of a variable (is_string(123) is a TypeDoesNotContainType), and is_float(1) is a TypeDoesNotContainType instead of a RedundantCondition. (#​15221, @​orklah)
  • === of two arrays that can both be empty (list<int> and list<string>), and instanceof of a non-final class on an object shape, are no false TypeDoesNotContainType, in a condition, a match arm or a bare statement. (#​15221, #​15229, @​orklah)
  • (bool) of true or false is a RedundantCast, and a branch on a stored condition that is always true or always false is analysed as unreachable. (#​15164, @​orklah)
  • $a !== $b against an object no longer narrows a wider iterable or callable $a with a false RedundantCondition. (#​14364, @​jirkace)
  • An interface, or a non-final class without __invoke(), may be callable: is_callable($handler) gives Handler&callable-object instead of a TypeDoesNotContainType. (#​14455, @​jirkace)
  • In !isList($x) || isMapInt($x), the negated array assertion keeps the non-array part of $x. (#​14427, @​jirkace)
  • A variable first assigned in a loop that may not run, or only before a break, keeps its possibly undefined type after the loop instead of mixed. (#​15181, @​orklah)
  • A [] that an unresolvable require may fill is no EmptyArrayAccess. (#​15189, @​jirkace)
Arrays
  • ??= on a key missing from a sealed shape creates it: $e["b"] ??= 2 gives array{a: 1, b: 2} instead of array{a: 1, b: 2|mixed} with a MixedAssignment, and the key that is never set is a TypeDoesNotContainType instead of an InvalidArrayOffset. (#​14573, @​jirkace)
  • After isset($l[$i]) with $i of 2|5, only the list items up to index 2 are required, so $l[4] is a PossiblyUndefinedArrayOffset. (#​15173, @​orklah)
  • A write under a non-literal key ($d[$k] = [1]) leaves the values of the other keys possibly empty, so empty($d[$j]) is no DocblockTypeContradiction. (#​15184, @​orklah)
  • An offset of an unsealed shape read after an isset() check of it is a PossiblyUndefinedArrayOffset. (#​15219, @​orklah)
  • A keyed destructuring into an offset or a property (["user" => $users[]] = $row) assigns it like =: the array gets the item, the property's type is checked, and taints flow to it. (#​14544, @​jirkace)
Types and templates
  • Return types computed from a union of literals use every literal, not only the first: pow(rand(0, 1) ? 2 : 3, 2) is 4|9 (was 4), and round(1.234, getInt()) is float (was float(1)). T[K] with a key of 'a'|'b', get_class($o) === $c with a union of class strings, and getAttributes() of a union of attribute classes use each of them. (#​15157, @​orklah)
  • A call of a callable array or a 'Class::method' string, directly or through call_user_func() and call_user_func_array(), returns what the method returns instead of mixed. (#​14511, @​jirkace)
  • A property read by one of several literal names ($o->{$p} with $p of 'x'|'y') has the type of each property instead of mixed. (#​14547, @​jirkace)
  • No false MixedArgumentTypeCoercion for an untyped closure param passed to a method of a receiver like static<int, TKey>, or for a method template bounded by a class template (TA of array<TKey, TValue>). (#​15183, @​orklah)
  • ArgumentTypeCoercion is reported again for an argument built in place (new Coll([new A()])) that breaks the bound of a method template, as for functions. (#​15214, @​orklah)
  • static in an intersection stays bound to its receiver: B<static>&static on a final class is B<F>&F, and a call on static&I no longer nests the receiver inside itself. (#​15215, @​orklah)
  • Animal::class is a PropertyTypeCoercion for a class-string<T> with T of Animal, since T may be a subclass. (#​14625, @​jirkace)
  • An intersection of a class and an object shape has the properties of both: Card&object{last4: string} fits object{brand: string, last4: string}. (#​14458, @​jirkace)
Docblocks
  • namespace\User in a docblock resolves to the current namespace, not a sub-namespace called namespace. (#​15177, @​alies-dev)
  • A callable param in @return named like a param of the function (Closure(int &$count): void on f(int $count)) is no longer read as that param: no InvalidDocblock, and & is kept. (#​15178, @​alies-dev)
  • An inline @var accepts a conditional on a param (($f is null ? T : int)), like @return. (#​14501, @​jirkace)
  • int-mask<> of a wildcard global constant (PHP_URL_*), a generic constant or an intersection of constants is an InvalidDocblock instead of a mask of 0 or of the first name. (#​15022, @​MikeFTV)
Classes, properties and traits
  • parent::class, parent::CONST and parent::$prop in a trait are those of the using class's parent instead of a ParentNotFound. (#​15015, @​jirkace)
  • A property keeps its own type where it is accessible, instead of the type of a @property of the same name that describes magic access. (#​15210, @​orklah)
  • A class declared under interface_exists() of a missing interface, and declared again in the else, is no UndefinedClass. (#​15199, @​orklah)
  • A trait method reaching members of a @psalm-internal class that uses it is no InternalClass or InternalMethod. (#​14374, @​jirkace)
  • @internal, @psalm-internal and #[Psalm\Internal] on a promoted constructor property report InternalProperty. (#​15013, @​jirkace)
Purity
  • Calling a closure, or a callable string or array, that may write properties forgets the memoized results of mutation-free methods, like an inline call: $clear(); return $owner->getChild(); is a NullableReturnStatement. (#​15046, @​shu-chen-dot-ca)
Taint analysis
  • MongoDB\BSON\ObjectId, UTCDateTime and the other BSON values the driver stores as their BSON type don't carry the nosql taint. Regex, Javascript, Document, PackedArray and userland BSON implementations keep it. (#​15099, @​danog)
  • A mixed variable narrowed by an if that otherwise leaves (if (!is_scalar($v)) return;) no longer gets back the taints the narrowing removed. (#​15163, @​danog)
  • strval(), implode() and vsprintf() of an object carry the taints of what its __toString() returns. (#​14452, @​jirkace)
  • An override keeps its own @psalm-taint-sink when the parent it inherits docblock types from has templates. (#​14504, @​jirkace)
Stubs and extensions
  • SoapClient::__setLocation() takes and returns ?string. (#​15010, @​jirkace)
  • MissingExtensionRequirement is not reported for an extension that a declared one requires (libxml for ext-dom, pdo for pdo_sqlite). (#​15182, @​orklah)
Messages
  • An issue on a docblock or attribute line selects the whole tag or attribute, not its indentation or a cut-off part. (#​15155, @​orklah)
  • PossiblyFalseArgument says possibly false value provided, like PossiblyNullArgument. (#​15151, @​ARAYN7011)
CLI and config
  • Without a php requirement in composer.json, Psalm analyses the version of its config.platform.php instead of the running PHP version. (#​15179, @​orklah)
  • A ** path pattern no longer follows a symlink cycle until it fails with Could not resolve config path. (#​14559, @​jirkace)
  • On Windows, each restarted Psalm process gets its own opcache, so a run no longer executes a plugin as another process cached it before it changed. (#​15234, @​alies-dev)
Plugin API
  • [BC] Union::isBool() is true when every member is a TBool, like isInt() and isString(): true and false alone are now bool. (#​15164, @​orklah)
  • Union::isSingle() is deprecated and will be removed in Psalm 8: it takes 1|2 for a single type, so getSingleAtomic() returns its first literal. Use isSingleAtomic() before getSingleAtomic(). (#​15157, @​orklah)
  • AfterMethodCallAnalysis gets the StaticCall the user wrote for a static call to a @mixin, or to an instance method through self::/static::, instead of a VirtualMethodCall. (#​15216, @​orklah)

Internal changes

  • Perf jobs run the base and head analyses side by side: the symfony and drupal jobs take about 4 min instead of 8. (#​15218, @​orklah)

New Contributors

Full Changelog: vimeo/psalm@7.22.1...7.23.0

v7.22.1

Compare Source

What's Changed

Fixes
Internal changes

Full Changelog: vimeo/psalm@7.22.0...7.22.1

v7.22.0: Call-site variance

Compare Source

New AI, UX and @template syntax features.

Features

  • Call-site variance: covariant or contravariant before a type argument makes one param accept a generic of any subtype (or supertype) of it, without changing the class's template. As with Box<*>, values then go one way only: from a Box<covariant Node> you read Node, but can't put anything in. (#​15096, @​alies-dev)
    /** @param Handler<covariant Node> $handler */
    function register(Handler $handler): void {}
    
    register(new LeafHandler()); // a Handler<LeafNode>: no issue (was InvalidArgument)
  • psalm --explain=<issue> prints an issue's documentation (what it means, an example, how to fix it) from the installed version, offline and without a config. It takes the issue type, its shortcode or its psalm.dev link. (#​15066, @​alies-dev, @​roxblnfk)
    vendor/bin/psalm --explain=PossiblyNullArgument
    vendor/bin/psalm --explain=078
    vendor/bin/psalm --explain=https://psalm.dev/078
  • AI coding agents: when Psalm runs under an agent (CLAUDECODE, CURSOR_AGENT, CODEX_THREAD_ID, AI_AGENT, …), it prints the compact format (one line per issue), no progress output even if CI is set, a one-line result (also 0 issues), and [*] after each issue --alter can fix. An explicit --output-format wins, and nothing changes outside an agent. See AI agents. (#​15068, #​15069, #​15067, @​alies-dev)
  • Crash reports name the plugin and hook that threw and the statement Psalm was analysing, save the full report to a file, and print a link that opens a prefilled issue on Psalm's or the plugin's tracker. (#​15070, @​alies-dev)
  • --no-taint-analysis skips taint analysis for one run (runTaintAnalysis is on by default), e.g. for a quick local check (#​15078, @​orklah).
  • New issues:
    • InternalFunction for a call of an @internal or @psalm-internal function from outside its namespace. (#​15084, @​orklah)
    • ParseError for constructor property promotion when analysing PHP 7.x. (#​15086, @​orklah)
  • --alter on PHP 8.2 writes true, false and null as native types (: true|null instead of : bool|null plus a docblock), and no longer adds docblocks that repeat a native type. (#​15083, @​orklah)

Performance

  • Narrowing a variable no longer copies the whole scope for every other variable, which made 7.18 about 2% slower than 7.17. (#​15121, @​alies-dev)

Fixes

Taint analysis
Stubs and plugins
  • A stub's @return (or its own @psalm-overload) replaces the original's @return $this and overloads, so a stubbed call returns the stub's type again (a 7.19.0 regression). (#​15090, @​alies-dev)
  • No false MethodSignatureMismatch for an override that widens a param of a stubbed userland class, and float/int swaps PHP rejects are reported. (#​15114, @​orklah)
  • [] on Ds\Map, Ds\Vector and other Ds collections is typed and checked, and a stub class that leaves out a method of its interfaces still has it. (#​15039, @​orklah)
  • A function params provider returning null keeps the function's params checked. (#​15040, @​orklah)
  • Params providers can resolve [$this, 'method']: CallAnalyzer::getFunctionIdsFromCallableArg() takes the call's Context. (#​15082, @​orklah)
  • A return type provider of a class wins over its @mixin for a method behind __call()/__callStatic(). (#​15020, @​shu-chen-dot-ca)
Arrays and narrowing
  • isset() and !isset() on array offsets: a negated check drops the shapes that always have the offset and keeps the optional offsets it leaves; an empty array stays empty; a nested isset($a["x"][3]) narrows $a["x"]. (#​15103, #​15104, #​15105, #​15076, @​orklah)
  • A switch case is analysed knowing the cases before it didn't match. (#​14528, @​jirkace)
  • Assigning an offset to a possibly-null array keeps the other offsets optional, and a nested write under a listed key of a shape with a mixed fallback keeps that key's type. (#​14815, #​14611, @​jirkace)
  • is_int(), is_bool() and is_string() keep the emptiness of empty-scalar and non-empty-scalar. (#​14431, @​jirkace)
  • is_callable() on a list can be true. (#​14319, @​jirkace)
  • No MixedAssignment/MixedArgument in a foreach over an always-empty list, such as list<T> of a new covariant generic. (#​15095, @​alies-dev)
Types and templates
  • The false branch of a conditional type bounds the template by the rest of its bound. (#​14647, @​jirkace)
  • value-of<T> of a backed enum template is an array key, and $case->value of a T is a value-of<T>. (#​14618, @​jirkace)
  • An intersection merges its object shapes (Card&object{last4: string}&object{brand: string}). (#​14457, @​jirkace)
  • An argument may fit any declaration of a method that several members of an intersection declare. (#​14977, @​shu-chen-dot-ca)
  • static in the params of a @method tag resolves to the called class. (#​14480, @​jirkace)
  • void|never is void, not null: AssignmentToVoid is reported, and an always-exiting function is no InvalidReturnType. (#​15087, @​orklah)
  • pow() with a zero and a float operand is a float. (#​14845, @​ARAYN7011)
  • PHP_INT_MIN is negative, PHP_DEBUG/PHP_ZTS are 0|1 (bool since PHP 8.4), and $_SERVER["DOCUMENT_ROOT"], ["SCRIPT_FILENAME"] and ["PATH_TRANSLATED"] can be empty. (#​15079, #​15092, @​orklah)
  • get_object_vars() doesn't include static properties. (#​15011, @​jirkace)
Functions, classes and properties
  • No false PropertyNotSetInConstructor for a redeclared promoted property or one assigned through $this->$name. (#​15038, @​orklah)
  • Overriding a property of a builtin class with its native type is no NonInvariantPropertyType. (#​14623, @​jirkace)
  • Calling a closure forgets the properties of $this it writes, and a by-reference capture gets what the closure leaves in it. (#​15048, #​15052, @​danog)
  • No false ReferenceConstraintViolation for a reference rebound before a break or in a switch case. (#​13710, @​jirkace)
  • The body is still analysed after MismatchingDocblockReturnType. (#​13213, @​jirkace)
  • An always-exiting function with a native return type is InvalidReturnType on PHP 8.1+. (#​15081, @​orklah)
  • global $x in a function has the type declared in <globals>. (#​15116, @​orklah)
Scanning and includes
  • require of a ternary between two paths is resolved, and the files a dependency requires through one are scanned (Carbon 3's CarbonPeriod). (#​15094, @​bardrop; #​15080, @​orklah)
  • With several scan threads, an autoloaded class is no longer replaced by a project file that redeclares it (IDE helpers). (#​15077, @​orklah)
  • ssh2_* functions belong to ext-ssh2, not ext-swoole. (#​15106, @​orklah)
CLI and config
  • A file that changes during a run stops it with src/C3.php changed while Psalm was running. Run Psalm again. instead of a crash, and a worker crash is printed once. (#​15061, @​alies-dev)
  • -c with a directory or an empty path reports Cannot read the config file instead of crashing. (#​14947, @​tlq5l)
  • config.xsd accepts allowMissingFiles on <projectFiles>, <extraFiles> and <errorLevel>. (#​15037, @​orklah)

Docs

Internal changes

  • CI: cancel superseded branch runs, start unit tests without the chunk-matrix job, refresh test times weekly, a 6× faster slowest test, and Windows-safe collector timing tests. (#​15024, [#​150

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Read more about the use of Renovate Bot within ocramius/* projects.

@renovate renovate Bot added the renovate label Nov 2, 2026
@renovate

renovate Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Loading composer repositories with package information
Dependency nikic/php-parser is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency psalm/plugin-phpunit is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency symfony/console is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires vimeo/psalm ^7.24.1, found vimeo/psalm[7.24.1] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - php-standard-library/psalm-plugin is locked to version 2.4.0 and an update of this package was not requested.
    - php-standard-library/psalm-plugin 2.4.0 requires vimeo/psalm >=5.16 -> found vimeo/psalm[5.16.0, ..., 5.26.1, 6.0.0, ..., 6.21.4, 7.0.0, ..., 7.24.1] but these were not loaded, likely because it conflicts with another require.
  Problem 3
    - psalm/plugin-phpunit is locked to version 0.19.7 and an update of this package was not requested.
    - psalm/plugin-phpunit 0.19.7 requires vimeo/psalm dev-master || ^6.10.0 -> found vimeo/psalm[6.10.0, ..., 6.21.4] but it conflicts with your root composer.json require (^7.24.1).
  Problem 4
    - roave/infection-static-analysis-plugin is locked to version 1.44.0 and an update of this package was not requested.
    - roave/infection-static-analysis-plugin 1.44.0 requires vimeo/psalm ^6.16.1 -> found vimeo/psalm[6.16.1, ..., 6.21.4] but it conflicts with your root composer.json require (^7.24.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate
renovate Bot force-pushed the renovate/vimeo-psalm-7.x branch 14 times, most recently from 8497d89 to 40f3bd8 Compare November 10, 2026 01:56
@renovate
renovate Bot force-pushed the renovate/vimeo-psalm-7.x branch 14 times, most recently from 403fafa to 6c9d18e Compare November 16, 2026 06:39
@renovate
renovate Bot force-pushed the renovate/vimeo-psalm-7.x branch 10 times, most recently from ce037a9 to b79f752 Compare November 23, 2026 21:23
@renovate
renovate Bot force-pushed the renovate/vimeo-psalm-7.x branch 7 times, most recently from 7e2cb89 to afa251b Compare November 29, 2026 02:35
| datasource | package     | from    | to     |
| ---------- | ----------- | ------- | ------ |
| packagist  | vimeo/psalm | 6.20.12 | 7.24.1 |
@renovate
renovate Bot force-pushed the renovate/vimeo-psalm-7.x branch from afa251b to 78d5b46 Compare November 30, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants