Repository navigation
Update dependency vimeo/psalm to v7 - #1028
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
renovate
Bot
force-pushed
the
renovate/vimeo-psalm-7.x
branch
14 times, most recently
from
November 10, 2026 01:56
8497d89 to
40f3bd8
Compare
renovate
Bot
force-pushed
the
renovate/vimeo-psalm-7.x
branch
14 times, most recently
from
November 16, 2026 06:39
403fafa to
6c9d18e
Compare
renovate
Bot
force-pushed
the
renovate/vimeo-psalm-7.x
branch
10 times, most recently
from
November 23, 2026 21:23
ce037a9 to
b79f752
Compare
renovate
Bot
force-pushed
the
renovate/vimeo-psalm-7.x
branch
7 times, most recently
from
November 29, 2026 02:35
7e2cb89 to
afa251b
Compare
| datasource | package | from | to | | ---------- | ----------- | ------- | ------ | | packagist | vimeo/psalm | 6.20.12 | 7.24.1 |
renovate
Bot
force-pushed
the
renovate/vimeo-psalm-7.x
branch
from
November 30, 2026 01:13
afa251b to
78d5b46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
^6.16.1→^7.24.1Release Notes
vimeo/psalm
v7.24.1Compare Source
What's Changed
Fixes
Internal changes
Full Changelog: vimeo/psalm@7.24.0...7.24.1
v7.24.0Compare Source
Features
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 asInvalidDocblockbefore. (#15231, @orklah)*anywhere in a class constant mask (self::*_ACCESS), not only at the end.self::andstatic::in the@templatebound of a method:self::is the class the method is declared in (the using class for a trait method) andstatic::the receiver's class. Psalm resolved both against the calling class, so$c->get(2)for@template B of self::REF_*was anInvalidArgument.Shapes with
...<V>or...<K, V>after their fields, and shapes without fields:array{id: int, ...<string>}InvalidDocblockarray{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&?BisA&B|null(wasA|null),(A|?B)[]keepsB|null, and(T is ?int ? A : B)parses.??intis anInvalidDocblock.enum-string<HasLabel>accepts only enums: passingPlain::classof a class implementingHasLabelis anInvalidArgument.int-mask-of<1|2|4>is0|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 anInvalidDocblockinstead of being dropped.Foo::$m()and$foo->$m()when$mholds one or several known strings. The call returns what those methods return and is checked like a direct call. (#15220, @orklah)($flag ? A::class : B::class)::make(...), is a closure of either method instead of onlyB::make().Performance
SqlWalker::walkSelectClause()analysed its inner loop 43 times instead of 23. (#15365, @orklah)isset()-guarded properties only when the constructor returns early. (#15327, @orklah)Fixes
Crashes
array_filter(),array_find()and their siblings called with only a namedcallback:argument no longer crash withUndefined array key 1. (#15288, @jirkace)nullto 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 aPossiblyNullReference. (#15367, @jirkace)@template T of string = self::Awithconst A = self::A) is reported asCircularReferenceinstead of crashing Psalm. (#15321, @jirkace)Narrowing and reported issues
Foo|Bar) applies the@psalm-assert-if-trueof one class's method only if the other class's method asserts it too. (#15220, @orklah)defined('ZipArchive::CREATE'),ZipArchive::CREATEis noMissingExtensionRequirement. (#15315, @jirkace)ReferenceReusedFromConfusingScopeis 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.0Compare Source
Features
array{type: "card", last4: string}|array{type: "bank", iban: string}as two shapes instead of merging them intoarray{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()andswitchpick the shape. (#15156, @jirkace)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)in_array(null, $names)also rules out'', which is loosely equal tonull:$namesbecomeslist<non-empty-string>.array_walk()andarray_walk_recursive()callbacks are checked against the values, keys and extra argument the functions pass them. (#15167, @backendArchitect)@psalm-overloadon constructors:newis 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)Performance
matchwith more arms thanmaxShapedArraySizeno 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)$a + $aon 250 literals takes under a second instead of 25 s. (#15171, @orklah)Fixes
Crashes
key-of<TArr>of a template bounded by another template no longer crashes withcount(): Argument #​1 ($value) must be of type Countable|array, null givenwhen 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 aRedundantConditionGivenDocblockType. (#12633, @jirkace)is_*()orinstanceofcheck of a literal or a call result that can never hold is reported like one of a variable (is_string(123)is aTypeDoesNotContainType), andis_float(1)is aTypeDoesNotContainTypeinstead of aRedundantCondition. (#15221, @orklah)===of two arrays that can both be empty (list<int>andlist<string>), andinstanceofof a non-final class on an object shape, are no falseTypeDoesNotContainType, in a condition, amatcharm or a bare statement. (#15221, #15229, @orklah)(bool)oftrueorfalseis aRedundantCast, and a branch on a stored condition that is always true or always false is analysed as unreachable. (#15164, @orklah)$a !== $bagainst an object no longer narrows a wideriterableorcallable$awith a falseRedundantCondition. (#14364, @jirkace)__invoke(), may be callable:is_callable($handler)givesHandler&callable-objectinstead of aTypeDoesNotContainType. (#14455, @jirkace)!isList($x) || isMapInt($x), the negated array assertion keeps the non-array part of$x. (#14427, @jirkace)break, keeps its possibly undefined type after the loop instead ofmixed. (#15181, @orklah)[]that an unresolvablerequiremay fill is noEmptyArrayAccess. (#15189, @jirkace)Arrays
??=on a key missing from a sealed shape creates it:$e["b"] ??= 2givesarray{a: 1, b: 2}instead ofarray{a: 1, b: 2|mixed}with aMixedAssignment, and the key that is never set is aTypeDoesNotContainTypeinstead of anInvalidArrayOffset. (#14573, @jirkace)isset($l[$i])with$iof2|5, only the list items up to index 2 are required, so$l[4]is aPossiblyUndefinedArrayOffset. (#15173, @orklah)$d[$k] = [1]) leaves the values of the other keys possibly empty, soempty($d[$j])is noDocblockTypeContradiction. (#15184, @orklah)isset()check of it is aPossiblyUndefinedArrayOffset. (#15219, @orklah)["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
pow(rand(0, 1) ? 2 : 3, 2)is4|9(was4), andround(1.234, getInt())isfloat(wasfloat(1)).T[K]with a key of'a'|'b',get_class($o) === $cwith a union of class strings, andgetAttributes()of a union of attribute classes use each of them. (#15157, @orklah)'Class::method'string, directly or throughcall_user_func()andcall_user_func_array(), returns what the method returns instead ofmixed. (#14511, @jirkace)$o->{$p}with$pof'x'|'y') has the type of each property instead ofmixed. (#14547, @jirkace)MixedArgumentTypeCoercionfor an untyped closure param passed to a method of a receiver likestatic<int, TKey>, or for a method template bounded by a class template (TA of array<TKey, TValue>). (#15183, @orklah)ArgumentTypeCoercionis 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)staticin an intersection stays bound to its receiver:B<static>&staticon a final class isB<F>&F, and a call onstatic&Ino longer nests the receiver inside itself. (#15215, @orklah)Animal::classis aPropertyTypeCoercionfor aclass-string<T>withT of Animal, sinceTmay be a subclass. (#14625, @jirkace)Card&object{last4: string}fitsobject{brand: string, last4: string}. (#14458, @jirkace)Docblocks
namespace\Userin a docblock resolves to the current namespace, not a sub-namespace callednamespace. (#15177, @alies-dev)@returnnamed like a param of the function (Closure(int &$count): voidonf(int $count)) is no longer read as that param: noInvalidDocblock, and&is kept. (#15178, @alies-dev)@varaccepts 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 anInvalidDocblockinstead of a mask of0or of the first name. (#15022, @MikeFTV)Classes, properties and traits
parent::class,parent::CONSTandparent::$propin a trait are those of the using class's parent instead of aParentNotFound. (#15015, @jirkace)@propertyof the same name that describes magic access. (#15210, @orklah)interface_exists()of a missing interface, and declared again in theelse, is noUndefinedClass. (#15199, @orklah)@psalm-internalclass that uses it is noInternalClassorInternalMethod. (#14374, @jirkace)@internal,@psalm-internaland#[Psalm\Internal]on a promoted constructor property reportInternalProperty. (#15013, @jirkace)Purity
$clear(); return $owner->getChild();is aNullableReturnStatement. (#15046, @shu-chen-dot-ca)Taint analysis
MongoDB\BSON\ObjectId,UTCDateTimeand the other BSON values the driver stores as their BSON type don't carry thenosqltaint.Regex,Javascript,Document,PackedArrayand userland BSON implementations keep it. (#15099, @danog)mixedvariable narrowed by anifthat otherwise leaves (if (!is_scalar($v)) return;) no longer gets back the taints the narrowing removed. (#15163, @danog)strval(),implode()andvsprintf()of an object carry the taints of what its__toString()returns. (#14452, @jirkace)@psalm-taint-sinkwhen the parent it inherits docblock types from has templates. (#14504, @jirkace)Stubs and extensions
SoapClient::__setLocation()takes and returns?string. (#15010, @jirkace)MissingExtensionRequirementis not reported for an extension that a declared one requires (libxmlforext-dom,pdoforpdo_sqlite). (#15182, @orklah)Messages
PossiblyFalseArgumentsayspossibly false value provided, likePossiblyNullArgument. (#15151, @ARAYN7011)CLI and config
phprequirement incomposer.json, Psalm analyses the version of itsconfig.platform.phpinstead of the running PHP version. (#15179, @orklah)**path pattern no longer follows a symlink cycle until it fails withCould not resolve config path. (#14559, @jirkace)Plugin API
Union::isBool()is true when every member is aTBool, likeisInt()andisString():trueandfalsealone are nowbool. (#15164, @orklah)Union::isSingle()is deprecated and will be removed in Psalm 8: it takes1|2for a single type, sogetSingleAtomic()returns its first literal. UseisSingleAtomic()beforegetSingleAtomic(). (#15157, @orklah)AfterMethodCallAnalysisgets theStaticCallthe user wrote for a static call to a@mixin, or to an instance method throughself::/static::, instead of aVirtualMethodCall. (#15216, @orklah)Internal changes
New Contributors
Full Changelog: vimeo/psalm@7.22.1...7.23.0
v7.22.1Compare Source
What's Changed
Fixes
Internal changes
TNamedObject::setValueIsStatic()ignoring$is_static_resolvedby @orklah in #15127Full Changelog: vimeo/psalm@7.22.0...7.22.1
v7.22.0: Call-site varianceCompare Source
New AI, UX and
@templatesyntax features.Features
covariantorcontravariantbefore a type argument makes one param accept a generic of any subtype (or supertype) of it, without changing the class's template. As withBox<*>, values then go one way only: from aBox<covariant Node>you readNode, but can't put anything in. (#15096, @alies-dev)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)CLAUDECODE,CURSOR_AGENT,CODEX_THREAD_ID,AI_AGENT, …), it prints thecompactformat (one line per issue), no progress output even ifCIis set, a one-line result (also0 issues), and[*]after each issue--altercan fix. An explicit--output-formatwins, and nothing changes outside an agent. See AI agents. (#15068, #15069, #15067, @alies-dev)--no-taint-analysisskips taint analysis for one run (runTaintAnalysisis on by default), e.g. for a quick local check (#15078, @orklah).InternalFunctionfor a call of an@internalor@psalm-internalfunction from outside its namespace. (#15084, @orklah)ParseErrorfor constructor property promotion when analysing PHP 7.x. (#15086, @orklah)--alteron PHP 8.2 writestrue,falseandnullas native types (: true|nullinstead of: bool|nullplus a docblock), and no longer adds docblocks that repeat a native type. (#15083, @orklah)Performance
Fixes
Taint analysis
TaintedCallablefor a tainted method name:$object->$name(),A::$name(). (#15072, @alies-dev)strip_tags()with allowed tags is not an html escape:strip_tags($_GET["x"], "<a>")isTaintedHtml. (#14753, @arpitjain099)Stubs and plugins
@return(or its own@psalm-overload) replaces the original's@return $thisand overloads, so a stubbed call returns the stub's type again (a 7.19.0 regression). (#15090, @alies-dev)MethodSignatureMismatchfor an override that widens a param of a stubbed userland class, andfloat/intswaps PHP rejects are reported. (#15114, @orklah)[]onDs\Map,Ds\Vectorand other Ds collections is typed and checked, and a stub class that leaves out a method of its interfaces still has it. (#15039, @orklah)nullkeeps the function's params checked. (#15040, @orklah)[$this, 'method']:CallAnalyzer::getFunctionIdsFromCallableArg()takes the call'sContext. (#15082, @orklah)@mixinfor 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 nestedisset($a["x"][3])narrows$a["x"]. (#15103, #15104, #15105, #15076, @orklah)switchcase is analysed knowing the cases before it didn't match. (#14528, @jirkace)mixedfallback keeps that key's type. (#14815, #14611, @jirkace)is_int(),is_bool()andis_string()keep the emptiness ofempty-scalarandnon-empty-scalar. (#14431, @jirkace)is_callable()on a list can be true. (#14319, @jirkace)MixedAssignment/MixedArgumentin aforeachover an always-empty list, such aslist<T>of anewcovariant generic. (#15095, @alies-dev)Types and templates
value-of<T>of a backed enum template is an array key, and$case->valueof aTis avalue-of<T>. (#14618, @jirkace)Card&object{last4: string}&object{brand: string}). (#14457, @jirkace)staticin the params of a@methodtag resolves to the called class. (#14480, @jirkace)void|neverisvoid, notnull:AssignmentToVoidis reported, and an always-exiting function is noInvalidReturnType. (#15087, @orklah)pow()with a zero and a float operand is a float. (#14845, @ARAYN7011)PHP_INT_MINis negative,PHP_DEBUG/PHP_ZTSare0|1(boolsince 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
PropertyNotSetInConstructorfor a redeclared promoted property or one assigned through$this->$name. (#15038, @orklah)NonInvariantPropertyType. (#14623, @jirkace)$thisit writes, and a by-reference capture gets what the closure leaves in it. (#15048, #15052, @danog)ReferenceConstraintViolationfor a reference rebound before abreakor in aswitchcase. (#13710, @jirkace)MismatchingDocblockReturnType. (#13213, @jirkace)InvalidReturnTypeon PHP 8.1+. (#15081, @orklah)global $xin a function has the type declared in<globals>. (#15116, @orklah)Scanning and includes
requireof a ternary between two paths is resolved, and the files a dependency requires through one are scanned (Carbon 3'sCarbonPeriod). (#15094, @bardrop; #15080, @orklah)ssh2_*functions belong to ext-ssh2, not ext-swoole. (#15106, @orklah)CLI and config
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)-cwith a directory or an empty path reportsCannot read the config fileinstead of crashing. (#14947, @tlq5l)config.xsdacceptsallowMissingFileson<projectFiles>,<extraFiles>and<errorLevel>. (#15037, @orklah)Docs
allowMissingFilesand the*/**path patterns. (#15037, @orklah)SecurityIssuein<unsuppressibleIssues>keeps every security issue reported. (#15074, @danog)Internal changes
Configuration
📅 Schedule: (in timezone UTC)
🚦 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.
Read more about the use of Renovate Bot within
ocramius/*projects.