chore(deps): update dependency vimeo/psalm to v7.12.0 #7

Merged
dawid merged 2 commits from renovate/all-minor-patch into main 2026-11-28 22:47:04 +00:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
vimeo/psalm 7.0.5 → 7.12.0 age confidence

Release Notes

vimeo/psalm

v7.12.0

Compare Source

What's Changed

Features
  • Add @optional-arguments-by-name, @arguments-by-name and @stable-parameter-names by @​nicolas-grekas in #​12389
  • Make everything a PSR-7 message holds a taint source, and a method implementing or overriding a source one too by @​danog in #​14211
  • Define a variable assigned under a condition when the same condition is checked again by @​orklah in #​14222
  • feat(call): report a function called with a different casing than it is declared with by @​jirkace in #​13348
  • fix(types): remember the result of a pure function called with literals by @​jirkace in #​13422
  • Add a stub of the protobuf extension for Message, Timestamp and Duration by @​jirkace in #​12617
Fixes
Internal changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.11.0...7.12.0

v7.11.0

Compare Source

What's Changed

Features
  • Report the CWE weaknesses of issues, and use the issue type as the SARIF rule id by @​danog in #​14156
  • Remove the taints a value can't carry once it matches an anchored pattern, or a list of words through a string cast by @​danog in #​14161
  • Require the Doctrine plugin, and enable it when composer.json requires Doctrine by @​danog in #​14165
  • Report weak hashes and ciphers, seeded random number generators, insecure cookies and XXE by @​danog in #​14160
  • Make what symfony/yaml parses with PARSE_OBJECT an unserialize sink by @​danog in #​14172
Fixes
Internal changes

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.10.0...7.11.0

v7.10.0

Compare Source

What's Changed

Features
Fixes
Internal changes

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.9.0...7.10.0

v7.9.0

Compare Source

What's Changed

Features
Fixes
Internal changes
  • Re-enable skipped tests that pass, link the others to their issues by @​orklah in #​13935
  • Fix ComplexMethod on SwitchCaseAnalyzer::analyze() in self-analysis by @​orklah in #​13996

Full Changelog: https://github.com/vimeo/psalm/compare/7.8.0...7.9.0

v7.8.0

Compare Source

What's Changed

Features
Fixes
  • Don't add literals computed from what a loop changes by @​orklah in #​13902
  • Keep the narrowing of a boolean flag after a condition on the same array offset by @​orklah in #​13905
  • Fix false PossiblyUndefinedArrayOffset after a loop that breaks on isset() by @​orklah in #​13903
  • Run the taint handlers psalm registers in the invalid taint cases too by @​danog in #​13653
  • Don't report what die, exit and unpacked arguments of printf() and the like print from CLI code by @​danog in #​13652
  • Add the implicit null to the inferred type of closures falling off their end by @​orklah in #​13910
  • Fix false PossiblyUndefinedVariable after a loop for a variable assigned before every continue by @​orklah in #​13906

Full Changelog: https://github.com/vimeo/psalm/compare/7.7.0...7.8.0

v7.7.0

Compare Source

What's Changed

Features
Fixes
Internal changes
  • Perf: serialize storages without keeping their property tables (cold run of a big app: -18 % peak memory, -7 % wall) by @​alies-dev in #​13593

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.6.0...7.7.0

v7.6.0

Compare Source

What's Changed

Features
Fixes
Docs
Internal changes
Other changes

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.5.0...7.6.0

v7.5.0

Compare Source

What's Changed

Features
Fixes
Internal changes
Other changes
  • feat(callable): report a callable that takes a parameter by reference where it is called with a value by @​jirkace in #​13548
  • fix(conditions): ignore what the left of an or tested of a variable the right reassigns by @​jirkace in #​13179

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.4.0...7.5.0

v7.4.0

Compare Source

What's Changed

Features
Fixes
  • Fix: initialize plugins before scanning the Composer autoload files in a full run by @​alies-dev in #​13591
Other changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.3.2...7.4.0

v7.3.2

Compare Source

What's Changed

Fixes
Internal changes
  • Perf: scan files from a warm cache without forking (big app warm run: -14 % wall, -15 % CPU, -13 % memory) by @​alies-dev in #​13251
Other changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.3.1...7.3.2

v7.3.1

Compare Source

What's Changed

Fixes
Internal changes
Other changes
  • fix(closure): keep what a closure writes to a by-reference variable before it returns by @​jirkace in #​13177
  • fix(mixin): forward a static call to the mixin that has the method by @​jirkace in #​13202

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.3.0...7.3.1

v7.3.0

Compare Source

What's Changed

Features
Fixes
Internal changes
  • Perf: Avoid quadratic copying when closing dependent classlikes in Populator (~2.5% faster on a big app) by @​alies-dev in #​13508
  • chore(baseline): drop the ImplicitToStringCast entry that #​11798 made unused by @​jirkace in #​13507
  • Fix PHPUnit plugin diagnostics in self-analysis by @​orklah in #​13524
  • Perf: Skip building code use edges that are not recorded when consolidating analysed data (~2% faster on a big app) by @​alies-dev in #​13509
Other changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.2.1...7.3.0

v7.2.1

Compare Source

What's Changed

Fixes
Docs
Internal changes
Other changes

New Contributors

Full Changelog: https://github.com/vimeo/psalm/compare/7.2.0...7.2.1

v7.2.0

Compare Source

What's Changed

Features
Fixes
Docs
Internal changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.1.0...7.2.0

v7.1.0

Compare Source

What's Changed

Features
Fixes
Internal changes

Full Changelog: https://github.com/vimeo/psalm/compare/7.0.5...7.1.0


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • Between 12:00 AM and 05:59 AM, only on Monday (* 0-5 * * 1)
  • Automerge
    • At any time (no schedule defined)

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

♻ Rebasing: Whenever PR becomes conflicted, 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

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [vimeo/psalm](https://github.com/vimeo/psalm) | `7.0.5` → `7.12.0` | ![age](https://developer.mend.io/api/mc/badges/age/packagist/vimeo%2fpsalm/7.12.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/vimeo%2fpsalm/7.0.5/7.12.0?slim=true) | --- ### Release Notes <details> <summary>vimeo/psalm</summary> ### [`v7.12.0`](https://github.com/vimeo/psalm/releases/tag/7.12.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.11.0...7.12.0) <!-- Release notes generated using configuration in .github/release.yml at 67cfa8476f9f2d666a5d3b54817738d1536afa77 --> #### What's Changed ##### Features - Add `@optional-arguments-by-name`, `@arguments-by-name` and `@stable-parameter-names` by [@&#8203;nicolas-grekas](https://github.com/nicolas-grekas) in [#&#8203;12389](https://github.com/vimeo/psalm/pull/12389) - Make everything a PSR-7 message holds a taint source, and a method implementing or overriding a source one too by [@&#8203;danog](https://github.com/danog) in [#&#8203;14211](https://github.com/vimeo/psalm/pull/14211) - Define a variable assigned under a condition when the same condition is checked again by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14222](https://github.com/vimeo/psalm/pull/14222) - feat(call): report a function called with a different casing than it is declared with by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13348](https://github.com/vimeo/psalm/pull/13348) - fix(types): remember the result of a pure function called with literals by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13422](https://github.com/vimeo/psalm/pull/13422) - Add a stub of the protobuf extension for Message, Timestamp and Duration by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12617](https://github.com/vimeo/psalm/pull/12617) ##### Fixes - Let loops see the writes made through references by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14193](https://github.com/vimeo/psalm/pull/14193) - Drop the clauses of variables a call writes through a closure or a global by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14195](https://github.com/vimeo/psalm/pull/14195) - Keep the arrays holding an item bound by reference in sync by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14194](https://github.com/vimeo/psalm/pull/14194) - Fix: crash on `sort()` and `array_unique()` when Psalm runs on PHP 8.6 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14201](https://github.com/vimeo/psalm/pull/14201) - Replace the invalid UTF-8 in the taint traces of a report too by [@&#8203;danog](https://github.com/danog) in [#&#8203;14212](https://github.com/vimeo/psalm/pull/14212) - Match named arguments by name where named arguments are not allowed by [@&#8203;danog](https://github.com/danog) in [#&#8203;14213](https://github.com/vimeo/psalm/pull/14213) - Analyse the condition of a ternary as the condition of an if by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14207](https://github.com/vimeo/psalm/pull/14207) - Forget the memoized results of the methods of an object when one of its properties is written by [@&#8203;danog](https://github.com/danog) in [#&#8203;14167](https://github.com/vimeo/psalm/pull/14167) - Report a sink of a variadic parameter once for an argument after its first by [@&#8203;danog](https://github.com/danog) in [#&#8203;13651](https://github.com/vimeo/psalm/pull/13651) - Narrow a value cast to a string and found in a list when none of its other types has a string form in it by [@&#8203;danog](https://github.com/danog) in [#&#8203;14169](https://github.com/vimeo/psalm/pull/14169) - Read a dynamic property as what the object holds under its name by [@&#8203;danog](https://github.com/danog) in [#&#8203;14177](https://github.com/vimeo/psalm/pull/14177) - Keep what was assigned to a dynamic property when it is read back by [@&#8203;danog](https://github.com/danog) in [#&#8203;14223](https://github.com/vimeo/psalm/pull/14223) - Store what is assigned to a dynamic property in the object, under its name by [@&#8203;danog](https://github.com/danog) in [#&#8203;14224](https://github.com/vimeo/psalm/pull/14224) - Fork workers with the StreamSelectDriver event loop by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14238](https://github.com/vimeo/psalm/pull/14238) - Report array access on objects not implementing ArrayAccess as InvalidArrayAccess by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14237](https://github.com/vimeo/psalm/pull/14237) - Forget stale narrowings after branches, offset writes and comparand changes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14208](https://github.com/vimeo/psalm/pull/14208) - Keep inherited assertions on parent:: calls and in unused-call checks by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14280](https://github.com/vimeo/psalm/pull/14280) - Forget narrowings of variables a closure passed inside an array captures by reference by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14276](https://github.com/vimeo/psalm/pull/14276) - Replace templates inside class-string\<Foo<T>> by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14278](https://github.com/vimeo/psalm/pull/14278) - Fix TypeDoesNotContainType when narrowing a class\&interface intersection to a subclass by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14275](https://github.com/vimeo/psalm/pull/14275) - Apply by-reference captures of a closure only in the scope it was made in by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14281](https://github.com/vimeo/psalm/pull/14281) - Keep the key and value types when iterating over a nullable or falsable iterable by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14279](https://github.com/vimeo/psalm/pull/14279) - Narrow `$x` when `$x ??= $y` is compared with null by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14282](https://github.com/vimeo/psalm/pull/14282) - Infer open template params for new on a generic class without a constructor by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14277](https://github.com/vimeo/psalm/pull/14277) - Keep wider types on !== with a non-literal value by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14295](https://github.com/vimeo/psalm/pull/14295) - fix(throws): accept an intersection type in [@&#8203;throws](https://github.com/throws) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12896](https://github.com/vimeo/psalm/pull/12896) - feat(suppress): a [@&#8203;psalm-suppress](https://github.com/psalm-suppress) docblock in front of an argument suppresses the issues of its expression [#&#8203;5599](https://github.com/vimeo/psalm/issues/5599) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13288](https://github.com/vimeo/psalm/pull/13288) - fix(docblock): resolve imported aliases when checking an alias definition by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13230](https://github.com/vimeo/psalm/pull/13230) - fix(unused-code): a variable used only in the arguments of a static call on an undefined class is used by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12864](https://github.com/vimeo/psalm/pull/12864) - fix(templates): the called class maps the templates of an interface to those of a parent method by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13436](https://github.com/vimeo/psalm/pull/13436) - Decide a conditional on Closure for interfaces, iterables and bounded templates ([#&#8203;12497](https://github.com/vimeo/psalm/issues/12497)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12756](https://github.com/vimeo/psalm/pull/12756) - fix(purity): an impure instance method or constructor costs write-refs like an impure function by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13688](https://github.com/vimeo/psalm/pull/13688) - fix(arrays): report a write with an offset that may not be a key by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12812](https://github.com/vimeo/psalm/pull/12812) - fix(destructuring): a nullable shape destructured by key is no PossiblyNullArrayAccess, like a list by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13295](https://github.com/vimeo/psalm/pull/13295) - fix(array-key-exists): report a non-numeric string key checked on a list or int-keyed array by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13291](https://github.com/vimeo/psalm/pull/13291) - fix(class-string): do not check array literals as class names when the value type is a union by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12667](https://github.com/vimeo/psalm/pull/12667) - fix(types): expand properties-of for a class without instance properties by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12935](https://github.com/vimeo/psalm/pull/12935) - Fix `static` kept on the union of $this and another object of its class by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;14078](https://github.com/vimeo/psalm/pull/14078) - Analyse the arguments of a self call of an instance method once by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13315](https://github.com/vimeo/psalm/pull/13315) - Analyse the iterated expression of a foreach once by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13316](https://github.com/vimeo/psalm/pull/13316) - fix(callable): non-public static callbacks of the current class by class string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12875](https://github.com/vimeo/psalm/pull/12875) - fix(callable): a callable array naming a method declared by [@&#8203;method](https://github.com/method) is callable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12986](https://github.com/vimeo/psalm/pull/12986) - A call is only redundant if every assertion it makes is ([#&#8203;11847](https://github.com/vimeo/psalm/issues/11847)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12766](https://github.com/vimeo/psalm/pull/12766) - fix(assert): don't check an is\_\*() call inside assert() a second time by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12648](https://github.com/vimeo/psalm/pull/12648) - fix(empty): no RiskyTruthyFalsyComparison for a required key of a sealed shape by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12883](https://github.com/vimeo/psalm/pull/12883) - fix(templates): input types a non-template part of a union contains are not the template's by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13439](https://github.com/vimeo/psalm/pull/13439) - fix(templates): an omitted default equal to an atomic of the union does not bound the template by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12985](https://github.com/vimeo/psalm/pull/12985) - fix(templates): expand [@&#8203;psalm-if-this-is](https://github.com/psalm-if-this-is) type before binding templates by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12942](https://github.com/vimeo/psalm/pull/12942) - fix(templates): keep templates of the calling function-like in scope in traits by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13220](https://github.com/vimeo/psalm/pull/13220) - fix(algebra): the right side of && assigning an offset or property forgets only what the left side tested of it by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13199](https://github.com/vimeo/psalm/pull/13199) - fix(switch): narrow the subject after a switch without default whose cases all return by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12972](https://github.com/vimeo/psalm/pull/12972) - fix(unset): report a variable unset in a branch as possibly undefined afterwards by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13126](https://github.com/vimeo/psalm/pull/13126) - Fix TypeError in && when the right side calls a closure capturing a variable by reference by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14303](https://github.com/vimeo/psalm/pull/14303) ##### Internal changes - Fail CI on PHP deprecations (PHPunit) and run Shepherd on PHP 8.6 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14229](https://github.com/vimeo/psalm/pull/14229) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.11.0...7.12.0> ### [`v7.11.0`](https://github.com/vimeo/psalm/releases/tag/7.11.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.10.0...7.11.0) <!-- Release notes generated using configuration in .github/release.yml at 9e0d0f88bc0a4233357a9aeb4b32da060644e196 --> #### What's Changed ##### Features - Report the CWE weaknesses of issues, and use the issue type as the SARIF rule id by [@&#8203;danog](https://github.com/danog) in [#&#8203;14156](https://github.com/vimeo/psalm/pull/14156) - Remove the taints a value can't carry once it matches an anchored pattern, or a list of words through a string cast by [@&#8203;danog](https://github.com/danog) in [#&#8203;14161](https://github.com/vimeo/psalm/pull/14161) - Require the Doctrine plugin, and enable it when composer.json requires Doctrine by [@&#8203;danog](https://github.com/danog) in [#&#8203;14165](https://github.com/vimeo/psalm/pull/14165) - Report weak hashes and ciphers, seeded random number generators, insecure cookies and XXE by [@&#8203;danog](https://github.com/danog) in [#&#8203;14160](https://github.com/vimeo/psalm/pull/14160) - Make what symfony/yaml parses with PARSE_OBJECT an unserialize sink by [@&#8203;danog](https://github.com/danog) in [#&#8203;14172](https://github.com/vimeo/psalm/pull/14172) ##### Fixes - \[6.x] Fix crash when a class extends a class_alias() declared later by [@&#8203;wleeaf](https://github.com/wleeaf) in [#&#8203;12494](https://github.com/vimeo/psalm/pull/12494) - Fix alter ignoring MissingThrowsDocblock suppression by [@&#8203;d-mitrofanov-v](https://github.com/d-mitrofanov-v) in [#&#8203;11586](https://github.com/vimeo/psalm/pull/11586) - Accept the $flags parameter of ArrayObject/ArrayIterator asort()/ksort() by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14127](https://github.com/vimeo/psalm/pull/14127) - Charge \_\_toString when builtins convert values or array values to strings by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14129](https://github.com/vimeo/psalm/pull/14129) - Taint the dynamic properties of a tainted object by [@&#8203;danog](https://github.com/danog) in [#&#8203;14162](https://github.com/vimeo/psalm/pull/14162) - Fix gettype() !== narrowing to a class named after the type by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14152](https://github.com/vimeo/psalm/pull/14152) - Analyse Foo::C and $foo::C with one helper (experimental) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14153](https://github.com/vimeo/psalm/pull/14153) - Merge NamespaceStatementsDiffer into FileStatementsDiffer (experimental) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14148](https://github.com/vimeo/psalm/pull/14148) - Analyze methods of another file through one helper keeping the root file by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14147](https://github.com/vimeo/psalm/pull/14147) - Taint what the preg_replace_callback() callback returns by [@&#8203;danog](https://github.com/danog) in [#&#8203;14067](https://github.com/vimeo/psalm/pull/14067) - Keep the taints of an array iterated with foreach when it can also be a string by [@&#8203;danog](https://github.com/danog) in [#&#8203;14168](https://github.com/vimeo/psalm/pull/14168) - \[Experimental] One builder per kind for the assertions of === and !== by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14155](https://github.com/vimeo/psalm/pull/14155) - Fix memory-limit option in psalm-refactor by [@&#8203;Aaqibhafeezkhan](https://github.com/Aaqibhafeezkhan) in [#&#8203;14070](https://github.com/vimeo/psalm/pull/14070) - Define the offsets before an offset asserted on a list by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14178](https://github.com/vimeo/psalm/pull/14178) - Give conditions built-in assertions only when the call resolves to the built-in function by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14151](https://github.com/vimeo/psalm/pull/14151) - Fix exponential analysis time of a negated in_array() over a literal list inside || by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;14072](https://github.com/vimeo/psalm/pull/14072) - fix(reports): escape control and bidi characters in the human-readable reports by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12804](https://github.com/vimeo/psalm/pull/12804) - fix(taint): link the arguments after the first one a variadic collects to its parameter by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13112](https://github.com/vimeo/psalm/pull/13112) - fix(assertions): [@&#8203;psalm-assert](https://github.com/psalm-assert) accepts an offset of an argument by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13005](https://github.com/vimeo/psalm/pull/13005) - fix(assert): an assertion on a scalar parameter does not narrow a mixed argument by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13895](https://github.com/vimeo/psalm/pull/13895) - Assert a non-empty string after file_exists, is_file and the other file tests by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12595](https://github.com/vimeo/psalm/pull/12595) - Fix crashes on first-class callables of inherited and provider-confirmed methods by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12124](https://github.com/vimeo/psalm/pull/12124) - Bind the method templates of the parent docblock an untyped override inherits by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;14073](https://github.com/vimeo/psalm/pull/14073) - Fix master CI: keep declared assertions of a call compared strictly to false by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14191](https://github.com/vimeo/psalm/pull/14191) - Fix template inference and a crash in static first-class callables by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14192](https://github.com/vimeo/psalm/pull/14192) ##### Internal changes - Dispatch the AddTaints/RemoveTaints handlers once per function call by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14144](https://github.com/vimeo/psalm/pull/14144) - Extract the shared tail of the simple assertion reconcilers by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14154](https://github.com/vimeo/psalm/pull/14154) - Authenticate PIE against GitHub when building the stub images by [@&#8203;danog](https://github.com/danog) in [#&#8203;14094](https://github.com/vimeo/psalm/pull/14094) - Deduplicate the console report formatting and the plugin enable/disable commands by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14149](https://github.com/vimeo/psalm/pull/14149) - Merge 6.x into master by [@&#8203;danog](https://github.com/danog) in [#&#8203;14166](https://github.com/vimeo/psalm/pull/14166) - Track classlike existence with one kind bitmask per name by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14146](https://github.com/vimeo/psalm/pull/14146) - Bump the perf corpus Drupal to 11.4.13 and split report issues by category by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14182](https://github.com/vimeo/psalm/pull/14182) - Remove the dead Context::$collect_mutations mode by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14145](https://github.com/vimeo/psalm/pull/14145) - Remove code for PHP versions Psalm no longer runs on by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14143](https://github.com/vimeo/psalm/pull/14143) - Move hard-coded callmap return types into return type providers by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14150](https://github.com/vimeo/psalm/pull/14150) - Fix line length in Refactor::LONG_OPTIONS by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14183](https://github.com/vimeo/psalm/pull/14183) #### New Contributors - [@&#8203;wleeaf](https://github.com/wleeaf) made their first contribution in [#&#8203;12494](https://github.com/vimeo/psalm/pull/12494) - [@&#8203;d-mitrofanov-v](https://github.com/d-mitrofanov-v) made their first contribution in [#&#8203;11586](https://github.com/vimeo/psalm/pull/11586) - [@&#8203;Aaqibhafeezkhan](https://github.com/Aaqibhafeezkhan) made their first contribution in [#&#8203;14070](https://github.com/vimeo/psalm/pull/14070) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.10.0...7.11.0> ### [`v7.10.0`](https://github.com/vimeo/psalm/releases/tag/7.10.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.9.0...7.10.0) <!-- Release notes generated using configuration in .github/release.yml at 2d8a48d1611508108eaa653ef599010da65eff3f --> #### What's Changed ##### Features - Array offsets: Report a `false` offset, which PHP turns into `0` by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12690](https://github.com/vimeo/psalm/pull/12690) - CLI: Add `--min-type-coverage` to fail below a type coverage minimum by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14075](https://github.com/vimeo/psalm/pull/14075) - Language server: Apply the baseline as the CLI does by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13775](https://github.com/vimeo/psalm/pull/13775) ##### Fixes - Docblock types: Recognize `non-empty-scalar` and similar types in namespaces by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14079](https://github.com/vimeo/psalm/pull/14079) - Docblock types: `empty-scalar` and `non-empty-scalar` no longer accept any scalar by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14080](https://github.com/vimeo/psalm/pull/14080) - Language server: Reject unrecognised short options by [@&#8203;jay23606](https://github.com/jay23606) in [#&#8203;13763](https://github.com/vimeo/psalm/pull/13763) - Loops: Report definite issues of a `do-while`'s first iteration, not `Possibly*` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14032](https://github.com/vimeo/psalm/pull/14032) - Loops: Report an argument issue once, not once per loop pass by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14103](https://github.com/vimeo/psalm/pull/14103) - Loops: Propagate types through nested `foreach` and references by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14099](https://github.com/vimeo/psalm/pull/14099) - Mixed: Keep a `mixed` variable `mixed` after an `if` that wrote its offsets by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14039](https://github.com/vimeo/psalm/pull/14039) - Mixed: Keep a `mixed` variable `mixed` after `else`, `switch`, `match` and `||` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14063](https://github.com/vimeo/psalm/pull/14063) - Mixed: Fix false `PossiblyUndefinedVariable` after `isset($var[$k])` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14065](https://github.com/vimeo/psalm/pull/14065) - Mixed: Fix false `InvalidArrayOffset` on nested writes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14062](https://github.com/vimeo/psalm/pull/14062) - Named arguments: Report the right argument number by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14096](https://github.com/vimeo/psalm/pull/14096) - Narrowing: Narrow impossible `null` comparisons to `never` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14036](https://github.com/vimeo/psalm/pull/14036) - Narrowing: Narrow exhaustive `instanceof` checks to `never` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14048](https://github.com/vimeo/psalm/pull/14048) - Narrowing: Fix false contradictions on `===` between overlapping types by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14037](https://github.com/vimeo/psalm/pull/14037) - Narrowing: `class_exists()` narrows only inside its `if` block by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13391](https://github.com/vimeo/psalm/pull/13391) - Narrowing: `$a?->m() ?? false` narrows `$a` to non-null by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12995](https://github.com/vimeo/psalm/pull/12995) - Narrowing: Narrow variables bound by reference in conditions by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14101](https://github.com/vimeo/psalm/pull/14101) - Property hooks: Fix `__METHOD__` and false `LessSpecificReturnType` by [@&#8203;danog](https://github.com/danog) in [#&#8203;14066](https://github.com/vimeo/psalm/pull/14066) - PHP 8.6: Allow `#[\Override]` on class constants and enum cases by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14038](https://github.com/vimeo/psalm/pull/14038) - Plugins: Resolve class names in all type declarations of the AST by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14134](https://github.com/vimeo/psalm/pull/14134) - Properties: Forget property items a called method writes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14027](https://github.com/vimeo/psalm/pull/14027) - Purity: Account for implicit `__toString()` calls by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;13782](https://github.com/vimeo/psalm/pull/13782) - Stubs: `filter_var(null)` returns `''` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14124](https://github.com/vimeo/psalm/pull/14124) - Stubs: `libxml_set_external_entity_loader()` is not an unused call by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14118](https://github.com/vimeo/psalm/pull/14118) - Stubs: `pathinfo()` may omit `dirname` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14122](https://github.com/vimeo/psalm/pull/14122) - Stubs: Fix write-only by-reference params of `proc_open()` and others by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14100](https://github.com/vimeo/psalm/pull/14100) - Stubs: Fix `SplObjectStorage` value checks and param names by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14121](https://github.com/vimeo/psalm/pull/14121) - Stubs: `stream_get_meta_data()` keys may be undefined by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14095](https://github.com/vimeo/psalm/pull/14095) - Templates: Narrow `key-of<T>`/`value-of<T>` instead of reporting contradictions by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14041](https://github.com/vimeo/psalm/pull/14041) - Templates: Use the bound of `key-of<T>`/`value-of<T>` in operations by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14064](https://github.com/vimeo/psalm/pull/14064) - Templates: Narrow to `key-of<T>`/`value-of<T>` after `array_key_exists()`/`in_array()` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14034](https://github.com/vimeo/psalm/pull/14034) - Templates: Keep `string` in an `array|scalar` argument to a `string|array` template by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14098](https://github.com/vimeo/psalm/pull/14098) - Templates: Report a type conflict at the write that causes it by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14102](https://github.com/vimeo/psalm/pull/14102) - Type coverage: Don't count deleted files on cached runs by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14077](https://github.com/vimeo/psalm/pull/14077) ##### Internal changes - Self-analysis: Fix `ComplexMethod` on `IfElseAnalyzer::analyze()` by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14088](https://github.com/vimeo/psalm/pull/14088) - Tests: Cover `unset()` of an offset in an `isset()` branch by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13123](https://github.com/vimeo/psalm/pull/13123) #### New Contributors - [@&#8203;jay23606](https://github.com/jay23606) made their first contribution in [#&#8203;13763](https://github.com/vimeo/psalm/pull/13763) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.9.0...7.10.0> ### [`v7.9.0`](https://github.com/vimeo/psalm/releases/tag/7.9.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.8.0...7.9.0) <!-- Release notes generated using configuration in .github/release.yml at 6b439ac5947fccc105ec83faf60568d15e24d2a9 --> #### What's Changed ##### Features - Analyse references to properties by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13955](https://github.com/vimeo/psalm/pull/13955) ##### Fixes - Fix explode() return type with a negative limit by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13949](https://github.com/vimeo/psalm/pull/13949) - Report native return types disjoint from the inherited [@&#8203;return](https://github.com/return) docblock by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13951](https://github.com/vimeo/psalm/pull/13951) - Narrow strings by strlen() comparisons that imply non-emptiness one way by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13953](https://github.com/vimeo/psalm/pull/13953) - Drop null from the left side of ?? on ArrayAccess offsets ([#&#8203;9960](https://github.com/vimeo/psalm/issues/9960)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12738](https://github.com/vimeo/psalm/pull/12738) - Don't assume an implicit null return after exhaustive type checks by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13952](https://github.com/vimeo/psalm/pull/13952) - Cast numeric-string and float array keys to int by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13956](https://github.com/vimeo/psalm/pull/13956) - Take an offset bound by reference as created, and its null array as an array by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13954](https://github.com/vimeo/psalm/pull/13954) - Narrow loop counters with the exit condition and inc/dec conditions by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13950](https://github.com/vimeo/psalm/pull/13950) - Do not make a key optional when the unsealed arrays lacking it may hold it by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13904](https://github.com/vimeo/psalm/pull/13904) - Narrow the receiver of a nullsafe chain that is not identical to null by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12701](https://github.com/vimeo/psalm/pull/12701) - Fix superglobal made nullable by global by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13973](https://github.com/vimeo/psalm/pull/13973) - Fix UndefinedVariable in isset() after a switch whose later case ends in a conditional throw by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13974](https://github.com/vimeo/psalm/pull/13974) - Fix: RedundantCondition on a nullsafe fetch compared to a bool literal by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13945](https://github.com/vimeo/psalm/pull/13945) - Fix crash destructuring an ArrayAccess object of self by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;13785](https://github.com/vimeo/psalm/pull/13785) - Fix: nullsafe fetch on an unread non-null property receiver is typed nullable by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13946](https://github.com/vimeo/psalm/pull/13946) - Resolve static in template arguments when comparing inherited signatures by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14000](https://github.com/vimeo/psalm/pull/14000) - Fix: PHP 8.6 SodiumCryptoXof\*State classes are undefined by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14013](https://github.com/vimeo/psalm/pull/14013) - Handle break 2 out of a nested switch by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13991](https://github.com/vimeo/psalm/pull/13991) - Fix UnusedVariable for an assignment before a break or in a catch read after the enclosing if by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13981](https://github.com/vimeo/psalm/pull/13981) - Narrow the value a loop exits with through ++/-- in its condition by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13992](https://github.com/vimeo/psalm/pull/13992) - Fix UndefinedVariable for a variable assigned in a nested && operand by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13976](https://github.com/vimeo/psalm/pull/13976) - Fix: properties of builtin classes known only through reflection are mixed by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14015](https://github.com/vimeo/psalm/pull/14015) - Keep the memoized result of a call that may change it by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13990](https://github.com/vimeo/psalm/pull/13990) - Fix: `curl_multi_get_handles()` returns `array<array-key, mixed>` instead of `list<CurlHandle>` by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14022](https://github.com/vimeo/psalm/pull/14022) - Fix: PHP 8.6 global constants are undefined when Psalm runs on PHP < 8.6 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14024](https://github.com/vimeo/psalm/pull/14024) - Fix: a parent's [@&#8203;method](https://github.com/method) overriding a non-public method of the child where the call reaches it by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14016](https://github.com/vimeo/psalm/pull/14016) - Replace characters XML 1.0 forbids in checkstyle and JUnit reports by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14025](https://github.com/vimeo/psalm/pull/14025) - Fix: PHP 8.6 signatures of `socket_addrinfo_lookup()`, `socket_cmsg_space()` and `ldap_free_result()` by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;14023](https://github.com/vimeo/psalm/pull/14023) - Inherit Iterator methods on interfaces extending RecursiveIterator and other internal interfaces by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14026](https://github.com/vimeo/psalm/pull/14026) - Take superglobals passed by reference as set by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14035](https://github.com/vimeo/psalm/pull/14035) - array_key_exists() removes null and false from the array where it is true by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13975](https://github.com/vimeo/psalm/pull/13975) - Don't accept an object with \_\_toString() for a string in overridden method types by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;14029](https://github.com/vimeo/psalm/pull/14029) ##### Internal changes - Re-enable skipped tests that pass, link the others to their issues by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13935](https://github.com/vimeo/psalm/pull/13935) - Fix ComplexMethod on SwitchCaseAnalyzer::analyze() in self-analysis by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13996](https://github.com/vimeo/psalm/pull/13996) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.8.0...7.9.0> ### [`v7.8.0`](https://github.com/vimeo/psalm/releases/tag/7.8.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.7.0...7.8.0) <!-- Release notes generated using configuration in .github/release.yml at 60e0a00e920b619377e44f7359b2b79c5463b585 --> #### What's Changed ##### Features - Analyse property hook bodies by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13911](https://github.com/vimeo/psalm/pull/13911) - Add `markAllNonInternalCodeAsApi` for libraries, and make the code a project doesn't ship internal by [@&#8203;danog](https://github.com/danog) in [#&#8203;13939](https://github.com/vimeo/psalm/pull/13939) ##### Fixes - Don't add literals computed from what a loop changes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13902](https://github.com/vimeo/psalm/pull/13902) - Keep the narrowing of a boolean flag after a condition on the same array offset by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13905](https://github.com/vimeo/psalm/pull/13905) - Fix false PossiblyUndefinedArrayOffset after a loop that breaks on isset() by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13903](https://github.com/vimeo/psalm/pull/13903) - Run the taint handlers psalm registers in the invalid taint cases too by [@&#8203;danog](https://github.com/danog) in [#&#8203;13653](https://github.com/vimeo/psalm/pull/13653) - Don't report what die, exit and unpacked arguments of printf() and the like print from CLI code by [@&#8203;danog](https://github.com/danog) in [#&#8203;13652](https://github.com/vimeo/psalm/pull/13652) - Add the implicit null to the inferred type of closures falling off their end by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13910](https://github.com/vimeo/psalm/pull/13910) - Fix false PossiblyUndefinedVariable after a loop for a variable assigned before every continue by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13906](https://github.com/vimeo/psalm/pull/13906) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.7.0...7.8.0> ### [`v7.7.0`](https://github.com/vimeo/psalm/releases/tag/7.7.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.6.0...7.7.0) <!-- Release notes generated using configuration in .github/release.yml at 0fd455bdcb8d4385c1b4b2fd81e1cb85b8625518 --> #### What's Changed ##### Features - feat(reconciler): a non-empty string that is not "0" is non-falsy by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13132](https://github.com/vimeo/psalm/pull/13132) - feat(instanceof): report instanceof iterable as a reserved word by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13093](https://github.com/vimeo/psalm/pull/13093) - Infer bounded ranges for |, ^, & and << on int ranges ([#&#8203;9902](https://github.com/vimeo/psalm/issues/9902)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12737](https://github.com/vimeo/psalm/pull/12737) - Infer templates when invoking generic first-class callables by [@&#8203;nicolas-grekas](https://github.com/nicolas-grekas) in [#&#8203;12714](https://github.com/vimeo/psalm/pull/12714) - Don't report MissingClassConstType for final constants by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13889](https://github.com/vimeo/psalm/pull/13889) ##### Fixes - Don't make an array shape key optional because its value was possibly undefined by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12702](https://github.com/vimeo/psalm/pull/12702) - fix(loops): a variable a break leaves undefined is possibly undefined after the loop by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13089](https://github.com/vimeo/psalm/pull/13089) - fix(docblocks): an override documenting only some params inherits the others' types from the parent [#&#8203;13161](https://github.com/vimeo/psalm/issues/13161) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13271](https://github.com/vimeo/psalm/pull/13271) - Fix false PossiblyUndefinedVariable after reference bindings and elseif condition assignments by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13795](https://github.com/vimeo/psalm/pull/13795) - Keep getter results after calls to methods whose body writes nothing by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13793](https://github.com/vimeo/psalm/pull/13793) - Keep the narrowing of the other variables of an if or elseif condition assigned to a variable by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13794](https://github.com/vimeo/psalm/pull/13794) - fix(references): a reference a branch or loop rebinds is detached from the variable it was bound to by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13707](https://github.com/vimeo/psalm/pull/13707) - Fix unsound negations of conditions with parts that can't be negated by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13813](https://github.com/vimeo/psalm/pull/13813) - fix(class-exists): the class of a negated class_exists() is only phantom after the first statement of the block by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13293](https://github.com/vimeo/psalm/pull/13293) - fix(closure): don't keep the capture-time literal of a variable captured by reference by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13215](https://github.com/vimeo/psalm/pull/13215) - Allow public(set) on readonly properties by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13817](https://github.com/vimeo/psalm/pull/13817) - Keep '0' in strings that are loosely != null by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13819](https://github.com/vimeo/psalm/pull/13819) - fix(type): make union comparison independent of member order [#&#8203;3957](https://github.com/vimeo/psalm/issues/3957) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13709](https://github.com/vimeo/psalm/pull/13709) - Don't report a condition as already asserted when its key or property changed by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13818](https://github.com/vimeo/psalm/pull/13818) - fix(foreach): a foreach by reference that writes every item leaves the written type in the array [#&#8203;4292](https://github.com/vimeo/psalm/issues/4292) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13273](https://github.com/vimeo/psalm/pull/13273) - fix(return-types): do not suggest never for an overridable method that always throws [#&#8203;9604](https://github.com/vimeo/psalm/issues/9604) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13289](https://github.com/vimeo/psalm/pull/13289) - fix(traits): self and static of a trait method refer to the class it ends up in when comparing signatures by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12678](https://github.com/vimeo/psalm/pull/12678) - fix(array-fetch): a remembered offset does not hide the null of the array it is read from by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13693](https://github.com/vimeo/psalm/pull/13693) - fix(assert): resolve self in an assertion of a trait method to the class using it by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13232](https://github.com/vimeo/psalm/pull/13232) - fix(foreach): a mixed value iterated by foreach may still be empty after it by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12686](https://github.com/vimeo/psalm/pull/12686) - Type the matches of the preg_replace_callback callback as nullable with PREG_UNMATCHED_AS_NULL by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12608](https://github.com/vimeo/psalm/pull/12608) - fix(loop): keep the assigned type of a do-while condition variable after the loop by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13359](https://github.com/vimeo/psalm/pull/13359) - fix(arrays): report an offset that can't be an array key when assigning to an array by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13180](https://github.com/vimeo/psalm/pull/13180) - fix(types): a space inside a type name is a syntax error by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12819](https://github.com/vimeo/psalm/pull/12819) - fix(reconciler): a loose comparison with a string keeps an object with \_\_toString by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13113](https://github.com/vimeo/psalm/pull/13113) - fix(enum): resolve global constants as enum case values by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12841](https://github.com/vimeo/psalm/pull/12841) - fix(references): report more non-variable arguments of by-reference parameters by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12791](https://github.com/vimeo/psalm/pull/12791) - Infer an object cast of an array, scalar or null as an stdClass by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12723](https://github.com/vimeo/psalm/pull/12723) - fix(types): an array shape as the type of a [@&#8203;method](https://github.com/method) parameter by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13781](https://github.com/vimeo/psalm/pull/13781) - fix(callmap): language constructs are not functions by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13360](https://github.com/vimeo/psalm/pull/13360) - Apply loop conditions only where they hold by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13824](https://github.com/vimeo/psalm/pull/13824) - Tell apart conditions whose assertions had the same identity by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13828](https://github.com/vimeo/psalm/pull/13828) - Fix: language server crash after an interface method is renamed by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13783](https://github.com/vimeo/psalm/pull/13783) - Fix crash on a missing trait while following a method for property initialization by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13784](https://github.com/vimeo/psalm/pull/13784) - Drop the clauses about a variable once it is reassigned by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13829](https://github.com/vimeo/psalm/pull/13829) - Keep the classes checked with class_exists() on both sides of && and || by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12609](https://github.com/vimeo/psalm/pull/12609) - Type the variables after while (true) from its breaks only by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13833](https://github.com/vimeo/psalm/pull/13833) - Resolve type variables in the results of closure, function and static calls by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13840](https://github.com/vimeo/psalm/pull/13840) - Taint: don't share the by-reference out node of an inferred-pure callee across its calls by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13826](https://github.com/vimeo/psalm/pull/13826) - Name the left operand of ?? in issue messages instead of a tmp coalesce var by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12594](https://github.com/vimeo/psalm/pull/12594) - fix(reconciler): a comparison narrows the bound of a template by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12601](https://github.com/vimeo/psalm/pull/12601) - fix(new): report UnsafeInstantiation for new on an object by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12867](https://github.com/vimeo/psalm/pull/12867) - fix(property): name the object in property assignment messages by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12901](https://github.com/vimeo/psalm/pull/12901) - fix(filter_var): the default filter supports FILTER_FLAG_EMPTY_STRING_NULL by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12828](https://github.com/vimeo/psalm/pull/12828) - fix(array_merge): put the elements after an array of unknown length into its rest by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13257](https://github.com/vimeo/psalm/pull/13257) - Validate writes to interface property hooks by [@&#8203;MohannadElemary](https://github.com/MohannadElemary) in [#&#8203;13467](https://github.com/vimeo/psalm/pull/13467) - Document missing CLI options in `help` by [@&#8203;MrYamous](https://github.com/MrYamous) in [#&#8203;13744](https://github.com/vimeo/psalm/pull/13744) - Pass $final when expanding the members of an intersection by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13852](https://github.com/vimeo/psalm/pull/13852) - Keep a union that TypeExpander leaves unchanged by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13848](https://github.com/vimeo/psalm/pull/13848) - Don't leak the narrowing of a ternary or ?? condition into the outer scope by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13847](https://github.com/vimeo/psalm/pull/13847) - Fix the context after an if whose condition or body narrows by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13832](https://github.com/vimeo/psalm/pull/13832) - Re-analyse a loop for variables defined before continue, not because an issue was recorded by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13856](https://github.com/vimeo/psalm/pull/13856) - Infer method templates when calling a first-class callable of a bound generic object by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13855](https://github.com/vimeo/psalm/pull/13855) - fix(callable): a protected callback is accessible from a parent class's method by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12910](https://github.com/vimeo/psalm/pull/12910) - fix(nullsafe): narrow the receiver and the value of a checked nullsafe property fetch by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13121](https://github.com/vimeo/psalm/pull/13121) - fix(assertions): trait_exists() with a false autoload argument asserts a trait-string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13748](https://github.com/vimeo/psalm/pull/13748) - fix(coalesce): variables assigned in the call on the left of ?? are set on the right by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12990](https://github.com/vimeo/psalm/pull/12990) - fix(assertions): a nullsafe fetch identical to a non-null variable asserts its receiver by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12830](https://github.com/vimeo/psalm/pull/12830) - Narrow a class comparison only for ::class, not for other class constants by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12735](https://github.com/vimeo/psalm/pull/12735) - Check the constructor arguments of new on a class-string whose constructor can't change by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12706](https://github.com/vimeo/psalm/pull/12706) - Fix false RedundantCondition on loop condition after an offset unset in an if by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13861](https://github.com/vimeo/psalm/pull/13861) - fix(algebra): negate a condition assigning on the right of && or || from the negated condition [#&#8203;13739](https://github.com/vimeo/psalm/issues/13739) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13868](https://github.com/vimeo/psalm/pull/13868) - Widen int ranges a loop keeps shifting past the analysed passes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13865](https://github.com/vimeo/psalm/pull/13865) - Fix the narrowing of nullsafe call receivers and of variables reassigned on the right of an && by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13864](https://github.com/vimeo/psalm/pull/13864) - Narrow through boolean flags set from calls, and keep them across offset writes by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13867](https://github.com/vimeo/psalm/pull/13867) - Fix false PossiblyUndefinedArrayOffset after an isset() check on a list by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13866](https://github.com/vimeo/psalm/pull/13866) - Taint: keep the flow through a static call of an inherited method through a subclass by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13870](https://github.com/vimeo/psalm/pull/13870) - fix(algebra): count a variable passed by reference in a condition as assigned there [#&#8203;13739](https://github.com/vimeo/psalm/issues/13739) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13879](https://github.com/vimeo/psalm/pull/13879) - fix(parser): report a duplicate type in a native union by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13131](https://github.com/vimeo/psalm/pull/13131) - fix(switch): use the variables of breaks for a case whose end is unreachable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13385](https://github.com/vimeo/psalm/pull/13385) - fix(analysis): escape string offsets in array variable ids by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13086](https://github.com/vimeo/psalm/pull/13086) - Widen int ranges a loop keeps shifting in array values by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13880](https://github.com/vimeo/psalm/pull/13880) - Fix assertions on self::$prop and static::$prop called from outside the class by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13891](https://github.com/vimeo/psalm/pull/13891) - Keep what the right operand of && writes or forgets after the expression by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13888](https://github.com/vimeo/psalm/pull/13888) - Update the holding arrays on a nested unset by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13884](https://github.com/vimeo/psalm/pull/13884) - Report reads before a later assignment in a loop as possibly undefined by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13885](https://github.com/vimeo/psalm/pull/13885) - Keep the truthy clause of a nullable int in the branches it guards by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13892](https://github.com/vimeo/psalm/pull/13892) - Fix: an object-shape part `object{}` of an intersection makes method calls mixed by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13876](https://github.com/vimeo/psalm/pull/13876) ##### Internal changes - Perf: serialize storages without keeping their property tables (cold run of a big app: -18 % peak memory, -7 % wall) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13593](https://github.com/vimeo/psalm/pull/13593) #### New Contributors - [@&#8203;MrYamous](https://github.com/MrYamous) made their first contribution in [#&#8203;13744](https://github.com/vimeo/psalm/pull/13744) - [@&#8203;nicolas-grekas](https://github.com/nicolas-grekas) made their first contribution in [#&#8203;12714](https://github.com/vimeo/psalm/pull/12714) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.6.0...7.7.0> ### [`v7.6.0`](https://github.com/vimeo/psalm/releases/tag/7.6.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.5.0...7.6.0) <!-- Release notes generated using configuration in .github/release.yml at 4303c7dbbc23efaac3d988707b4acf4d5508a9cc --> #### What's Changed ##### Features - Make allowStringToStandInForClass consistent across class-string usages by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13702](https://github.com/vimeo/psalm/pull/13702) - Add `Codebase::addReportableFiles()` to report issues in files Psalm doesn't analyze by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13725](https://github.com/vimeo/psalm/pull/13725) - Narrow array_filter() results with first-class callable callbacks by [@&#8203;kamil-tekiela](https://github.com/kamil-tekiela) in [#&#8203;12524](https://github.com/vimeo/psalm/pull/12524) - Narrow a string to empty or non-empty from strlen() compared with 0 or 1 by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12597](https://github.com/vimeo/psalm/pull/12597) - Report a float that loses its fraction as an operand of a bitwise or modulo operation by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12623](https://github.com/vimeo/psalm/pull/12623) ##### Fixes - fix(algebra): an operand of an || that can never be true is paradoxical by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13689](https://github.com/vimeo/psalm/pull/13689) - fix(reconciler): a lowercase or literal string can be asserted to be the name of a class or a callable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13685](https://github.com/vimeo/psalm/pull/13685) - fix(reconciler): !is_iterable() drops the objects that are Traversable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13686](https://github.com/vimeo/psalm/pull/13686) - Fix false positive null array access diagnostics in unset() by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13663](https://github.com/vimeo/psalm/pull/13663) - Fix dynamic method call reachability in unused code analysis by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13668](https://github.com/vimeo/psalm/pull/13668) - fix(algebra): a not-null check after isset() of the same variable is redundant by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13692](https://github.com/vimeo/psalm/pull/13692) - fix(scope): a switch default that falls through without returning does not end the function by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13684](https://github.com/vimeo/psalm/pull/13684) - fix(unused): a read in a try body after an assignment does not use the values the assignment overwrote by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13704](https://github.com/vimeo/psalm/pull/13704) - fix(reconciler): array_key_exists() of a string in an array of int keys narrows it to the keys as strings by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13690](https://github.com/vimeo/psalm/pull/13690) - fix(properties): a class extending a universal object crate keeps the properties it declares by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13703](https://github.com/vimeo/psalm/pull/13703) - fix(reconciler): a negated isset of a possibly undefined variable is null by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13706](https://github.com/vimeo/psalm/pull/13706) - Fix `@mixin` lookup order: own, traits, parents; first declared wins by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13694](https://github.com/vimeo/psalm/pull/13694) - Print exact types in argument, return type and signature mismatch messages by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13717](https://github.com/vimeo/psalm/pull/13717) - Fix crash when Psalm is used as a library without a check method (nullable `$project_files`) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13719](https://github.com/vimeo/psalm/pull/13719) - Fix stubs that redeclare properties of builtin or already stubbed classes by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13720](https://github.com/vimeo/psalm/pull/13720) - Don't report an || operand reading a variable the condition assigns by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13724](https://github.com/vimeo/psalm/pull/13724) - Fix overly broad invalidation of memoized getters after unrelated object mutations by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13662](https://github.com/vimeo/psalm/pull/13662) - fix(context): a block that forgot a variable leaves its type as it was before the block by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13705](https://github.com/vimeo/psalm/pull/13705) - Fix: an inaccessible method hides the mixin method reached through `__call()` by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13727](https://github.com/vimeo/psalm/pull/13727) - Keep the key and value types of a negated iterable assertion on Traversable by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13732](https://github.com/vimeo/psalm/pull/13732) - Treat the bound of a template a receiver leaves out as a stand-in by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13733](https://github.com/vimeo/psalm/pull/13733) - Resolve static::$p to its property when it is passed by reference by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13730](https://github.com/vimeo/psalm/pull/13730) - Report a stringable object in the index column of array_column since PHP 8 by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13731](https://github.com/vimeo/psalm/pull/13731) - Keep the invariance check of a template nested in a generic param by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13729](https://github.com/vimeo/psalm/pull/13729) - Remember a property of an interface that a shape or a mixin gives by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13734](https://github.com/vimeo/psalm/pull/13734) - Nullsafe call compared to a bool literal no longer narrows its receiver to null by [@&#8203;0xABCD01](https://github.com/0xABCD01) in [#&#8203;13602](https://github.com/vimeo/psalm/pull/13602) - fix(algebra): four unsound simplifications of simplifyCNF() [#&#8203;13736](https://github.com/vimeo/psalm/issues/13736) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13745](https://github.com/vimeo/psalm/pull/13745) - fix(algebra): two clauses of one condition that are not reconcilable do not share a hash [#&#8203;13737](https://github.com/vimeo/psalm/issues/13737) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13747](https://github.com/vimeo/psalm/pull/13747) - fix(foreach): a key that isset() added to the item in a foreach by reference is not written back by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13691](https://github.com/vimeo/psalm/pull/13691) - A sealed array shape with optional keys can be a list ([#&#8203;11905](https://github.com/vimeo/psalm/issues/11905)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12763](https://github.com/vimeo/psalm/pull/12763) - fix(stubs): DateTime::createFromFormat() reports its false return like DateTimeImmutable's by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13350](https://github.com/vimeo/psalm/pull/13350) - Fix: Report an unparsable [@&#8203;method](https://github.com/method) return type instead of crashing by [@&#8203;yvo-niedrich](https://github.com/yvo-niedrich) in [#&#8203;13608](https://github.com/vimeo/psalm/pull/13608) - fix(cli): don't crash when clearing a cache directory another process writes to by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13418](https://github.com/vimeo/psalm/pull/13418) - Inherit the parent's [@&#8203;var](https://github.com/var) type for a redeclared property without one by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13746](https://github.com/vimeo/psalm/pull/13746) - extract() with EXTR_SKIP defines a possibly undefined variable by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13761](https://github.com/vimeo/psalm/pull/13761) - Report a possibly undefined variable at the use() of a closure and in an arrow function by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13760](https://github.com/vimeo/psalm/pull/13760) - Fix --alter for a variable defined by a previous loop iteration by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13759](https://github.com/vimeo/psalm/pull/13759) - Let stubs refine property types listed in PropertyMap by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13755](https://github.com/vimeo/psalm/pull/13755) - A possibly undefined variable reads and reconciles as null when undefined by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13762](https://github.com/vimeo/psalm/pull/13762) - Evaluate the keys of an array item before the value by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13758](https://github.com/vimeo/psalm/pull/13758) - fix(algebra): a native symbol guard of function_exists() is no PHP_VERSION_ID check [#&#8203;13736](https://github.com/vimeo/psalm/issues/13736) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13764](https://github.com/vimeo/psalm/pull/13764) - fix(types): do not crash on a type alias imported from a class that is not scanned yet by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13192](https://github.com/vimeo/psalm/pull/13192) - fix(property): honour [@&#8203;property](https://github.com/property) on assignment without \_\_set [#&#8203;5092](https://github.com/vimeo/psalm/issues/5092) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13711](https://github.com/vimeo/psalm/pull/13711) - fix(call): do not crash on a method call on a variable typed with an unresolvable static by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13191](https://github.com/vimeo/psalm/pull/13191) - fix(isset): isset() on a typed property of a class without a constructor is not redundant [#&#8203;10252](https://github.com/vimeo/psalm/issues/10252) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13286](https://github.com/vimeo/psalm/pull/13286) - fix(loops): a variable the loop condition always assigns is defined after the loop [#&#8203;7072](https://github.com/vimeo/psalm/issues/7072) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13266](https://github.com/vimeo/psalm/pull/13266) - Fix wrong-case property names in PropertyMap by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13771](https://github.com/vimeo/psalm/pull/13771) - Keep the type of a possibly undefined variable defined in some branches by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13751](https://github.com/vimeo/psalm/pull/13751) - fix(unused-code): don't report params of a method whose body isn't analysed as unused by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13384](https://github.com/vimeo/psalm/pull/13384) - Don't crash on a docblock return or assertion type that is empty by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12719](https://github.com/vimeo/psalm/pull/12719) - fix(conditions): keep what an elseif or else writes after the first branch updated the variable [#&#8203;10328](https://github.com/vimeo/psalm/issues/10328) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13281](https://github.com/vimeo/psalm/pull/13281) - fix(algebra): the clauses of an if or a switch case about a variable its condition assigns are dropped [#&#8203;13739](https://github.com/vimeo/psalm/issues/13739) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13770](https://github.com/vimeo/psalm/pull/13770) - fix(array): appending to a nested element of a sealed keyed array no longer asserts by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13029](https://github.com/vimeo/psalm/pull/13029) - fix(int-mask): two bit sets compared for equality are no ambiguous comparison by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13713](https://github.com/vimeo/psalm/pull/13713) - Keep self-contradicting conditions for the reconciler [#&#8203;13736](https://github.com/vimeo/psalm/issues/13736) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13754](https://github.com/vimeo/psalm/pull/13754) - fix(docblock): an int-mask accepts a global constant used from a namespace by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13200](https://github.com/vimeo/psalm/pull/13200) ##### Docs - Document calling `addReportableFiles()` in the plugin entry point by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13728](https://github.com/vimeo/psalm/pull/13728) - Document the conditional default of findUnusedVariablesAndParams by [@&#8203;roxblnfk](https://github.com/roxblnfk) in [#&#8203;13750](https://github.com/vimeo/psalm/pull/13750) - Document how library authors help Psalm understand their package by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13773](https://github.com/vimeo/psalm/pull/13773) ##### Internal changes - Drop unneeded suppressions from invalid-code test cases by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13715](https://github.com/vimeo/psalm/pull/13715) - Drop ignored_issues entries that valid-code test cases never need by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13716](https://github.com/vimeo/psalm/pull/13716) - Split PsalmEndToEndTest so ParaTest runs its tests in parallel by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13722](https://github.com/vimeo/psalm/pull/13722) - Require psalm/psalm-plugin-api 0.4.5 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13735](https://github.com/vimeo/psalm/pull/13735) - Remove redundant branches and statements repeated in every branch by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13749](https://github.com/vimeo/psalm/pull/13749) - Disable CircleCI by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13752](https://github.com/vimeo/psalm/pull/13752) ##### Other changes - Find references to a method also where its return value is used by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;13667](https://github.com/vimeo/psalm/pull/13667) #### New Contributors - [@&#8203;0xABCD01](https://github.com/0xABCD01) made their first contribution in [#&#8203;13602](https://github.com/vimeo/psalm/pull/13602) - [@&#8203;yvo-niedrich](https://github.com/yvo-niedrich) made their first contribution in [#&#8203;13608](https://github.com/vimeo/psalm/pull/13608) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.5.0...7.6.0> ### [`v7.5.0`](https://github.com/vimeo/psalm/releases/tag/7.5.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.4.0...7.5.0) <!-- Release notes generated using configuration in .github/release.yml at 9520421041c4de67379270dc17502544dd808140 --> #### What's Changed ##### Features - Add [@&#8203;psalm-cli-only-instances](https://github.com/psalm-cli-only-instances): code requiring an instance of a class only instantiated from the command line is command-line code by [@&#8203;danog](https://github.com/danog) in [#&#8203;13635](https://github.com/vimeo/psalm/pull/13635) - Honour FORCE_COLOR and share color detection across CLIs by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13665](https://github.com/vimeo/psalm/pull/13665) - Exit with code 2 when psalter --dry-run would change files by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13666](https://github.com/vimeo/psalm/pull/13666) - Let plugins mark a file's top-level code as CLI-only by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13643](https://github.com/vimeo/psalm/pull/13643) ##### Fixes - fix(match): analyse a match(true) arm once for all its conditions by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12842](https://github.com/vimeo/psalm/pull/12842) - Perf: analyse an inherited constructor once per subclass (-5 to -9 % CPU) + fix false positive PropertyNotSetInConstructor by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13240](https://github.com/vimeo/psalm/pull/13240) - Fix: method with an unknown parameter class is analysed when its file is analysed again by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12547](https://github.com/vimeo/psalm/pull/12547) - fix(control-flow): preserve outer loop exits across switch cases [#&#8203;13620](https://github.com/vimeo/psalm/issues/13620) by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13627](https://github.com/vimeo/psalm/pull/13627) - Fix unused variable detection for references returned by functions by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13623](https://github.com/vimeo/psalm/pull/13623) - Name the compared operator in int range comparison messages ([#&#8203;12109](https://github.com/vimeo/psalm/issues/12109)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12762](https://github.com/vimeo/psalm/pull/12762) - fix(templates): resolve a method call on a template bounded by another template by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13107](https://github.com/vimeo/psalm/pull/13107) - fix(closure): a closure that calls itself through a by-reference use has its own signature there by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13077](https://github.com/vimeo/psalm/pull/13077) - Fix: analyse a file's namespace-level statements once, not for every subclass that follows into it (mediawiki -33 % CPU) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13592](https://github.com/vimeo/psalm/pull/13592) - Fix: invalid file:// links for paths with spaces and Windows drives by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13664](https://github.com/vimeo/psalm/pull/13664) - fix(parser): read built-in constants without their deprecation by [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) in [#&#8203;13601](https://github.com/vimeo/psalm/pull/13601) - \[7.x] Keep taint graph nodes as compact rows: worker results \~600 MB → 170 MB, main peak -1.1 GB by [@&#8203;jarstelfox](https://github.com/jarstelfox) in [#&#8203;13536](https://github.com/vimeo/psalm/pull/13536) - Fix: psalter rejects the advertised `--monochrome` option by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13669](https://github.com/vimeo/psalm/pull/13669) - Fix: generic [@&#8203;mixin](https://github.com/mixin) binds static to an earlier mixin declaring the same method by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13673](https://github.com/vimeo/psalm/pull/13673) - Fix: psalm-refactor --move and --rename never work by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13679](https://github.com/vimeo/psalm/pull/13679) - Fix: --show-info, --report-show-info and --threads misread their values by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13680](https://github.com/vimeo/psalm/pull/13680) - Fix: options after a path are ignored, so psalter --dry-run can rewrite files by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13678](https://github.com/vimeo/psalm/pull/13678) - Fix: psalter --file, --plugin and --codeowner resolve paths wrongly by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13681](https://github.com/vimeo/psalm/pull/13681) - Fix: psalm - (paths from STDIN) and empty path arguments crash by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13682](https://github.com/vimeo/psalm/pull/13682) - Fix: a class's own [@&#8203;mixin](https://github.com/mixin) replaces the mixins inherited from its parent by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13687](https://github.com/vimeo/psalm/pull/13687) ##### Internal changes - Readable psalter output by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13656](https://github.com/vimeo/psalm/pull/13656) - Perf: read a location's compact state without a property table (taint, 1 thread: -1.8 % peak memory) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13674](https://github.com/vimeo/psalm/pull/13674) - Require psalm/psalm-plugin-api 0.4.3 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13683](https://github.com/vimeo/psalm/pull/13683) ##### Other changes - feat(callable): report a callable that takes a parameter by reference where it is called with a value by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13548](https://github.com/vimeo/psalm/pull/13548) - fix(conditions): ignore what the left of an or tested of a variable the right reassigns by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13179](https://github.com/vimeo/psalm/pull/13179) #### New Contributors - [@&#8203;shu-chen-dot-ca](https://github.com/shu-chen-dot-ca) made their first contribution in [#&#8203;13601](https://github.com/vimeo/psalm/pull/13601) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.4.0...7.5.0> ### [`v7.4.0`](https://github.com/vimeo/psalm/releases/tag/7.4.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.3.2...7.4.0) <!-- Release notes generated using configuration in .github/release.yml at master --> #### What's Changed ##### Features - Report calls of [@&#8203;psalm-cli-only](https://github.com/psalm-cli-only) code from code that may not run from the command line by [@&#8203;danog](https://github.com/danog) in [#&#8203;13611](https://github.com/vimeo/psalm/pull/13611) - Allow [@&#8203;psalm-assert](https://github.com/psalm-assert) on PHP_SAPI, so a guard function marks the code after it as command-line code by [@&#8203;danog](https://github.com/danog) in [#&#8203;13633](https://github.com/vimeo/psalm/pull/13633) ##### Fixes - Fix: initialize plugins before scanning the Composer autoload files in a full run by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13591](https://github.com/vimeo/psalm/pull/13591) ##### Other changes - Don't let stuck runs skip every phar build by [@&#8203;muglug](https://github.com/muglug) in [#&#8203;13630](https://github.com/vimeo/psalm/pull/13630) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.3.2...7.4.0> ### [`v7.3.2`](https://github.com/vimeo/psalm/releases/tag/7.3.2) [Compare Source](https://github.com/vimeo/psalm/compare/7.3.1...7.3.2) <!-- Release notes generated using configuration in .github/release.yml at 5ae5547150b3b097f8027e64770abaf1a5ef761c --> #### What's Changed ##### Fixes - fix(callable): a first-class callable of a method keeps its inherited return type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12800](https://github.com/vimeo/psalm/pull/12800) - fix(conditions): forget what the left of && tested of a variable that its right assigns by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12655](https://github.com/vimeo/psalm/pull/12655) - fix(unused): see assignments of a try branch that throws after the try by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13122](https://github.com/vimeo/psalm/pull/13122) - fix(isset): a property missing on one member of a union is null for isset by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12689](https://github.com/vimeo/psalm/pull/12689) - Define the variables assigned in the condition of a while or for loop after the loop by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12717](https://github.com/vimeo/psalm/pull/12717) - fix(conditions): don't report paths below an assigned variable as redundant in and/or chains by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13292](https://github.com/vimeo/psalm/pull/13292) - Report instanceof of an implied interface, not instanceof of a class-string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12626](https://github.com/vimeo/psalm/pull/12626) - Combine the variables of all catches when the try block always throws by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12727](https://github.com/vimeo/psalm/pull/12727) - Psalter: leave a docblock as written when no [@&#8203;return](https://github.com/return) tag changes by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13624](https://github.com/vimeo/psalm/pull/13624) - Apply what plugins remove from a call's result wherever the result flows by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13626](https://github.com/vimeo/psalm/pull/13626) ##### Internal changes - Perf: scan files from a warm cache without forking (big app warm run: -14 % wall, -15 % CPU, -13 % memory) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13251](https://github.com/vimeo/psalm/pull/13251) ##### Other changes - Remove redundant CS checks in circleCI by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13628](https://github.com/vimeo/psalm/pull/13628) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.3.1...7.3.2> ### [`v7.3.1`](https://github.com/vimeo/psalm/releases/tag/7.3.1) [Compare Source](https://github.com/vimeo/psalm/compare/7.3.0...7.3.1) <!-- Release notes generated using configuration in .github/release.yml at 81bda61675df22fc4e5e1ceab1c33f4c61a4830b --> #### What's Changed ##### Fixes - Narrow arrays of the same keys that are identical to an array of overlapping item types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12707](https://github.com/vimeo/psalm/pull/12707) - fix(memoization): keep a memoized call narrowed in the initialization pass by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13120](https://github.com/vimeo/psalm/pull/13120) - Keep a mixed variable mixed after a ternary that narrows it by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12725](https://github.com/vimeo/psalm/pull/12725) - Fix: [@&#8203;method](https://github.com/method) of a used trait or parent class overriding a declared method by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13546](https://github.com/vimeo/psalm/pull/13546) - Fix parser caching for project paths containing vendor by [@&#8203;MohannadElemary](https://github.com/MohannadElemary) in [#&#8203;13491](https://github.com/vimeo/psalm/pull/13491) - fix(types): isset narrows optional properties of object shapes by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13409](https://github.com/vimeo/psalm/pull/13409) - fix(static-properties): forget a static property after a call to a method that assigns it [#&#8203;10705](https://github.com/vimeo/psalm/issues/10705) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13262](https://github.com/vimeo/psalm/pull/13262) - fix(conditional): a value is never of the type never in a conditional return type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13433](https://github.com/vimeo/psalm/pull/13433) - Don't let the conditions of the caller reach a method analysed inline by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12732](https://github.com/vimeo/psalm/pull/12732) - fix(docblock): reject the removed self-accessing/self-mutating callables with params by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12776](https://github.com/vimeo/psalm/pull/12776) - fix(types): '0' is a non-empty-lowercase-string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12832](https://github.com/vimeo/psalm/pull/12832) - fix(templates): keep the key of a list when its template types are replaced by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12837](https://github.com/vimeo/psalm/pull/12837) - fix(array_pop): an optional last item of a list may leave the previous one popped by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12825](https://github.com/vimeo/psalm/pull/12825) - fix(alter): replace a whole union return type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12876](https://github.com/vimeo/psalm/pull/12876) - Name the element of psalm.xml a config path error comes from by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12616](https://github.com/vimeo/psalm/pull/12616) - fix(types): validate refined stringable arguments by [@&#8203;1cbyc](https://github.com/1cbyc) in [#&#8203;13472](https://github.com/vimeo/psalm/pull/13472) - fix(functions): bind the template of a conditional return type whatever the casing of the call by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12656](https://github.com/vimeo/psalm/pull/12656) - Report an int range offset that partly fits the keys of an array as possibly invalid by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12710](https://github.com/vimeo/psalm/pull/12710) - fix(shapes): keep an optional key of an unsealed shape through isset and the join of branches by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12646](https://github.com/vimeo/psalm/pull/12646) - Resolve self of a trait method's return type to the class using the trait ([#&#8203;4047](https://github.com/vimeo/psalm/issues/4047)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12742](https://github.com/vimeo/psalm/pull/12742) - fix(calls): name the callable in TooFewArguments and TooManyArguments by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12637](https://github.com/vimeo/psalm/pull/12637) - fix(callable): parse and print by-reference parameters of callable types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13290](https://github.com/vimeo/psalm/pull/13290) - fix(and): a variable assigned in the right operand of && may keep its earlier type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13361](https://github.com/vimeo/psalm/pull/13361) - fix(closures): the self of a closure parameter called in a trait is the using class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13301](https://github.com/vimeo/psalm/pull/13301) - ctype checks of an expression of the implied type are not redundant ([#&#8203;12431](https://github.com/vimeo/psalm/issues/12431)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12748](https://github.com/vimeo/psalm/pull/12748) - fix(psalter): don't remove the others when fixing an unused property by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12840](https://github.com/vimeo/psalm/pull/12840) - fix(stubs): exec() output is list<string> for an empty array by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12844](https://github.com/vimeo/psalm/pull/12844) - fix(types): cases() on a bare enum-string is a call on UnitEnum by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12908](https://github.com/vimeo/psalm/pull/12908) - feat(array_intersect_key): limit the result keys to the keys of sealed shapes by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12774](https://github.com/vimeo/psalm/pull/12774) - fix(types): expand the type of an [@&#8203;property](https://github.com/property) when narrowing it by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12931](https://github.com/vimeo/psalm/pull/12931) - fix(algebra): equal in-array clauses of different arrays are not a repetition by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12891](https://github.com/vimeo/psalm/pull/12891) - fix(loops): no stale narrowing of properties in do-while conditions by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12863](https://github.com/vimeo/psalm/pull/12863) - fix(callable): a first-class callable of a method keeps the return type it inherits by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13108](https://github.com/vimeo/psalm/pull/13108) - fix(purity): signal the implicit \_\_toString call of an argument whatever the analysis mode by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13105](https://github.com/vimeo/psalm/pull/13105) - feat(type-alias): report an imported type alias named like an existing class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13109](https://github.com/vimeo/psalm/pull/13109) - fix(unused): count the value of a pre-increment used as an array key by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13168](https://github.com/vimeo/psalm/pull/13168) - fix(docblock): the docblock before a use statement still declares the variables of the file by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13076](https://github.com/vimeo/psalm/pull/13076) - fix(callable): do not accept a callable that requires an optional parameter by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13128](https://github.com/vimeo/psalm/pull/13128) - fix(reconciler): remove null from the bound of a template on isset by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12954](https://github.com/vimeo/psalm/pull/12954) - fix(types): combine the types left by negating is_string/is_array by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12890](https://github.com/vimeo/psalm/pull/12890) - Infer array_filter() of an array or mixed like array_filter() of mixed by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12731](https://github.com/vimeo/psalm/pull/12731) - fix(classes): analyse an anonymous class only once at a time by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13115](https://github.com/vimeo/psalm/pull/13115) - fix(assert): assert an object shape on a plain object by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13217](https://github.com/vimeo/psalm/pull/13217) - fix(scanner): give a constant defined in several branches the union of its values by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13222](https://github.com/vimeo/psalm/pull/13222) - fix(docblock): accept a [@&#8203;psalm-check-type](https://github.com/psalm-check-type) spanning several docblock lines by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13227](https://github.com/vimeo/psalm/pull/13227) - fix(reconciler): narrow with an instanceof result stored in a variable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13221](https://github.com/vimeo/psalm/pull/13221) - Fix taint lost on method calls whose return type a plugin provides by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13552](https://github.com/vimeo/psalm/pull/13552) - Fix conditional return type treating a \_\_toString object as a string by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13559](https://github.com/vimeo/psalm/pull/13559) - test(stubs): check stub function parameters against the call map by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12632](https://github.com/vimeo/psalm/pull/12632) - Report array_unique() of objects that can't be converted to strings by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12628](https://github.com/vimeo/psalm/pull/12628) - test(loop): an if that breaks keeps what its condition assigns ([#&#8203;10727](https://github.com/vimeo/psalm/issues/10727)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13324](https://github.com/vimeo/psalm/pull/13324) - fix(types): a class with pseudo properties satisfies an object shape by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12977](https://github.com/vimeo/psalm/pull/12977) - fix(stubs): the stubs generator leaves out the type of a scalar by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13190](https://github.com/vimeo/psalm/pull/13190) - fix(assertions): accept an object shape as the argument of an assertion about one of its properties [#&#8203;11386](https://github.com/vimeo/psalm/issues/11386) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13278](https://github.com/vimeo/psalm/pull/13278) - fix(constants): narrow static::CONSTANT separately from self::CONSTANT [#&#8203;10058](https://github.com/vimeo/psalm/issues/10058) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13282](https://github.com/vimeo/psalm/pull/13282) - fix(properties): [@&#8203;psalm-suppress](https://github.com/psalm-suppress) in the docblock of a promoted property applies to the property by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13371](https://github.com/vimeo/psalm/pull/13371) - fix(interfaces): isset() of a property of an interface is not an interface property access by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13368](https://github.com/vimeo/psalm/pull/13368) - fix(reconciler): an assertion with alternatives is impossible only when all of them are by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13367](https://github.com/vimeo/psalm/pull/13367) - Remove an enum from the type where it is not instanceof itself by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13327](https://github.com/vimeo/psalm/pull/13327) - feat(config): add assumeGettersMutationFree to stop taking unannotated getters as mutation-free by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13351](https://github.com/vimeo/psalm/pull/13351) - fix(global): do not report InvalidGlobal in a file that documents its $this [#&#8203;9773](https://github.com/vimeo/psalm/issues/9773) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13285](https://github.com/vimeo/psalm/pull/13285) - fix(properties): $this is static in the pass that collects what a constructor initializes by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13373](https://github.com/vimeo/psalm/pull/13373) - fix(config): MutableDependency and ImmutableDependency are class issues, suppressible per referenced class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13380](https://github.com/vimeo/psalm/pull/13380) - fix(is_a): keep the template of a class-string<T> narrowed by is_a/is_subclass_of by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13393](https://github.com/vimeo/psalm/pull/13393) - docs(InvalidGlobal): say what global does in the global scope and show the allowed use by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13405](https://github.com/vimeo/psalm/pull/13405) - fix(match): a match with more arms than the maximum shaped array size can be exhaustive by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13382](https://github.com/vimeo/psalm/pull/13382) - fix(closure): a closure returned from a closure takes its types from that closure by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13398](https://github.com/vimeo/psalm/pull/13398) - fix(templates): class template bound by the receiver keeps invariance for method params by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13428](https://github.com/vimeo/psalm/pull/13428) - fix(config): include ParseError in the list of issue types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13419](https://github.com/vimeo/psalm/pull/13419) - The true branch of a conditional type bounds the template by its condition ([#&#8203;11867](https://github.com/vimeo/psalm/issues/11867)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12769](https://github.com/vimeo/psalm/pull/12769) - Narrow the receiver of a nullsafe property compared to null by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13314](https://github.com/vimeo/psalm/pull/13314) - fix(constants): a negated defined() check no longer switches the undefined constant check off by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13096](https://github.com/vimeo/psalm/pull/13096) - fix(config): only the CLI entry points read the arguments of the process by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12815](https://github.com/vimeo/psalm/pull/12815) - fix(arguments): a parameter another unpacked array names is not mixed by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12849](https://github.com/vimeo/psalm/pull/12849) - fix(reconciler): do not re-report keys nested in an assigned variable in a conjunction by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13119](https://github.com/vimeo/psalm/pull/13119) - fix(types): combining numeric-string with the empty string twice must not widen to string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12903](https://github.com/vimeo/psalm/pull/12903) - fix(array-functions): array_pop and array_shift adjust an array element too by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13111](https://github.com/vimeo/psalm/pull/13111) - fix(switch): report a case of switch(true) that cannot match by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12926](https://github.com/vimeo/psalm/pull/12926) - fix(mixed): do not report MixedAssignment of a variable narrowed by an elseif condition by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13174](https://github.com/vimeo/psalm/pull/13174) - DateTimeImmutable::createFromFormat() honours ignoreInternalFunctionFalseReturn by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12620](https://github.com/vimeo/psalm/pull/12620) - fix(array_map): a variadic callback or one using func_get_args() takes any number of arrays by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13370](https://github.com/vimeo/psalm/pull/13370) - Fix: Stub generation for union types that result to scalar could not be converted to identifier by [@&#8203;Mirco91](https://github.com/Mirco91) in [#&#8203;11852](https://github.com/vimeo/psalm/pull/11852) - Fix taint lost into an override's parameter through a call of the parent's variadic by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13556](https://github.com/vimeo/psalm/pull/13556) - Fix conditional on a class matching a string-bounded class template by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13561](https://github.com/vimeo/psalm/pull/13561) - Keep string|int|float|bool unions in generated stubs (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13565](https://github.com/vimeo/psalm/pull/13565) - fix(alter): keep an assignment whose value is stored into an array element by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13420](https://github.com/vimeo/psalm/pull/13420) - fix(templates): a type predicate on a template bounded by another template looks through its bound by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13299](https://github.com/vimeo/psalm/pull/13299) - fix(templates): a template nested in a generic param is inferred, not compared invariantly by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13431](https://github.com/vimeo/psalm/pull/13431) - test(template): pin a conditional return making a template array non-empty by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13342](https://github.com/vimeo/psalm/pull/13342) - fix(types): read the escape sequences of a string literal in a docblock type as PHP does by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13402](https://github.com/vimeo/psalm/pull/13402) - fix(include): an included file can't change the type of $this by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13423](https://github.com/vimeo/psalm/pull/13423) - fix(closures): a narrowed property of an immutable object is known in an arrow function by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13381](https://github.com/vimeo/psalm/pull/13381) - fix(types): keep truthiness when narrowing non-empty-mixed by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12843](https://github.com/vimeo/psalm/pull/12843) - Type get_object_vars() with array-key keys by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12627](https://github.com/vimeo/psalm/pull/12627) - Leave out stub signature types with a scalar PHP can't spell by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13570](https://github.com/vimeo/psalm/pull/13570) - Report a misplaced variable in a promoted property docblock as an issue, not a crash (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13571](https://github.com/vimeo/psalm/pull/13571) - Fix crash on a property assertion about a non-variable argument (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13572](https://github.com/vimeo/psalm/pull/13572) - Report a TypeParseTreeException in a [@&#8203;mixin](https://github.com/mixin) / [@&#8203;psalm-require-](https://github.com/psalm-require-)\* type as an issue, not a crash (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13573](https://github.com/vimeo/psalm/pull/13573) - Accept a name after the = or ... of a callable param (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13574](https://github.com/vimeo/psalm/pull/13574) - Fix crash on first-class callables in count()/gettype()/get_class() conditions (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13575](https://github.com/vimeo/psalm/pull/13575) - Fix cache reads crashing while another worker rewrites the entry (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13576](https://github.com/vimeo/psalm/pull/13576) - Fix warm-cache crash when a file is reached under two spellings of its path (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13577](https://github.com/vimeo/psalm/pull/13577) - Fix crash when a class is named only in a template's bound (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13579](https://github.com/vimeo/psalm/pull/13579) - Don't crash on a constant dividing by a zero constant of another class (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13580](https://github.com/vimeo/psalm/pull/13580) - Don't fold a shift by a negative number or zero to a negative power (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13582](https://github.com/vimeo/psalm/pull/13582) - Don't overflow the int range bound in a comparison with PHP_INT_MAX or PHP_INT_MIN (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13583](https://github.com/vimeo/psalm/pull/13583) - Fix crash when scope summaries contain non-UTF-8 strings (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13585](https://github.com/vimeo/psalm/pull/13585) - Fix crash on array_multisort() flags when Psalm runs on PHP 8.6 (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13586](https://github.com/vimeo/psalm/pull/13586) - Don't crash psalter on properties declared together (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13587](https://github.com/vimeo/psalm/pull/13587) - feat(docblock): choose between the [@&#8203;method](https://github.com/method) overloads of a magic method by the arguments by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13352](https://github.com/vimeo/psalm/pull/13352) - Give array_reduce() callbacks the type of the array elements by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12610](https://github.com/vimeo/psalm/pull/12610) - fix(inheritance): an override is compared with the docblock a method inherits from its interface by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13446](https://github.com/vimeo/psalm/pull/13446) - fix(args): an unpacked argument passes only the parameters it has values for by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12671](https://github.com/vimeo/psalm/pull/12671) - Narrow the variable of a ??= condition ([#&#8203;11158](https://github.com/vimeo/psalm/issues/11158)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12743](https://github.com/vimeo/psalm/pull/12743) - fix(traits): a trait method without docblock inherits the docblock of the parent method by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13440](https://github.com/vimeo/psalm/pull/13440) - fix(if-else): know the variables assigned in an || condition in the else branch and ternary else by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12665](https://github.com/vimeo/psalm/pull/12665) - refactor(assertions): handle an asserted argument's property and the rules' class constants in one place by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13510](https://github.com/vimeo/psalm/pull/13510) - fix(type-parser): keep an optional shape key named like a scalar alias, self or parent by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12682](https://github.com/vimeo/psalm/pull/12682) - fix(types): an interpolated string with a non-falsy part is non-falsy by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12869](https://github.com/vimeo/psalm/pull/12869) - feat(array_merge_recursive): keep the shape of arrays that share no key by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13399](https://github.com/vimeo/psalm/pull/13399) - Accept a name before the = of a callable param (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13578](https://github.com/vimeo/psalm/pull/13578) - fix(unused): don't report a [@&#8203;phpstan-var](https://github.com/phpstan-var) as an unnecessary [@&#8203;var](https://github.com/var) annotation by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13092](https://github.com/vimeo/psalm/pull/13092) - Fix crash of multi-threaded runs without posix (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13581](https://github.com/vimeo/psalm/pull/13581) - Fix crashes on `NAN`, `INF` and out-of-range float literals on PHP 8.5+ (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13584](https://github.com/vimeo/psalm/pull/13584) - Accept memcached as a supported extension, as config.xsd and the stub say (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13588](https://github.com/vimeo/psalm/pull/13588) - fix(unused-code): a dynamic class constant name on an expression is used by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12880](https://github.com/vimeo/psalm/pull/12880) - fix(arrays): assigning to the item of an array a function returns by reference has an effect by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13195](https://github.com/vimeo/psalm/pull/13195) - fix(types): resolve type variables read by foreach, destructuring and clone by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12861](https://github.com/vimeo/psalm/pull/12861) - fix(analysis): an undefined static property given to an unknown callee is reported by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12929](https://github.com/vimeo/psalm/pull/12929) - fix(unused-code): params of a method are used when the variables cannot be checked by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12780](https://github.com/vimeo/psalm/pull/12780) - fix(constants): a final constant fetched on an instance has its declared type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12688](https://github.com/vimeo/psalm/pull/12688) - fix(constants): expand the declared type of a class constant before checking its value by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12649](https://github.com/vimeo/psalm/pull/12649) - fix(templates): map an object's extended params through the inheritance chain by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12777](https://github.com/vimeo/psalm/pull/12777) - Don't report arithmetic on a template bounded by int|float as mixed by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12606](https://github.com/vimeo/psalm/pull/12606) - fix(enum): use the value of an annotated constant as an enum case value by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13171](https://github.com/vimeo/psalm/pull/13171) - Don't report a shebang line as unevaluated after a namespaced exit or return by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12695](https://github.com/vimeo/psalm/pull/12695) - fix(docblocks): analyse the docblock of a use statement [#&#8203;6065](https://github.com/vimeo/psalm/issues/6065) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13279](https://github.com/vimeo/psalm/pull/13279) - \[6.x] Fix: crash on count()/gettype()/get_class() conditions with php-parser < 5.9 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13594](https://github.com/vimeo/psalm/pull/13594) - \[6.x] Infer the offsetGet type when destructuring a non-Traversable ArrayAccess by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13595](https://github.com/vimeo/psalm/pull/13595) - fix(do-while): do not report NoValue for code only impossible in the first iteration by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12679](https://github.com/vimeo/psalm/pull/12679) - fix(language-server): omit unset optional fields instead of sending null by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12811](https://github.com/vimeo/psalm/pull/12811) - fix(try): the variables of every catch count when the try always exits by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12916](https://github.com/vimeo/psalm/pull/12916) - Count a variable referenced by a property or array item as used by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12693](https://github.com/vimeo/psalm/pull/12693) - fix(array_map): keep the list/keys of an array arg whose type is a template by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13430](https://github.com/vimeo/psalm/pull/13430) - fix(template): a literal returned where a template variable is identical to it is a T by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13294](https://github.com/vimeo/psalm/pull/13294) - fix(filter_var): accept both values of FILTER_FLAG_GLOBAL_RANGE by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12784](https://github.com/vimeo/psalm/pull/12784) - fix(return-types): expand the implementer's docblock return type like the inherited one by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12779](https://github.com/vimeo/psalm/pull/12779) - Expand the signature of a method's closure like a function's ([#&#8203;12388](https://github.com/vimeo/psalm/issues/12388)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12758](https://github.com/vimeo/psalm/pull/12758) - Don't fold arithmetic on array items and properties in loops like literals ([#&#8203;7250](https://github.com/vimeo/psalm/issues/7250)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12770](https://github.com/vimeo/psalm/pull/12770) - Keep a file_exists guard of an include across && and for constants by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13322](https://github.com/vimeo/psalm/pull/13322) - fix(taint): don't loop on files requiring each other by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13415](https://github.com/vimeo/psalm/pull/13415) - fix(unused-code): a variable variable may read any variable of the scope by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12781](https://github.com/vimeo/psalm/pull/12781) - fix(taint): a nullsafe call on a property acts on the property itself by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12808](https://github.com/vimeo/psalm/pull/12808) - fix(types): accept an imported type alias in key-of and value-of by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12806](https://github.com/vimeo/psalm/pull/12806) - Infer a non-falsy string for implode() of a non-falsy piece or separator by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12596](https://github.com/vimeo/psalm/pull/12596) - fix(interfaces): assigning a property of an interface that isset() found is not an interface property access by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13379](https://github.com/vimeo/psalm/pull/13379) - fix(control-flow): a loop that nothing leaves ends the function by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12846](https://github.com/vimeo/psalm/pull/12846) - An assertion on an item with a union key keeps the other items as they are ([#&#8203;11845](https://github.com/vimeo/psalm/issues/11845)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12765](https://github.com/vimeo/psalm/pull/12765) - fix(constants): don't keep the literal of a class constant read through self/static in a trait by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13223](https://github.com/vimeo/psalm/pull/13223) - fix(types): compare array shapes key by key when checking if they can be identical by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12654](https://github.com/vimeo/psalm/pull/12654) - Follow a method of a parent class or trait when checking what a constructor sets by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12619](https://github.com/vimeo/psalm/pull/12619) - fix(call): the templates of a method are bound by its arguments, not read as bindings of its class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13447](https://github.com/vimeo/psalm/pull/13447) - Fix: infer templates from a generic array in a union with null or false by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13598](https://github.com/vimeo/psalm/pull/13598) - fix(if): what is known of an offset of a variable a branch assigns is forgotten after the if by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13375](https://github.com/vimeo/psalm/pull/13375) - Fix: MethodSignatureMismatch repeated on every subclass for an inherited [@&#8203;method](https://github.com/method) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13600](https://github.com/vimeo/psalm/pull/13600) ##### Internal changes - Show raw issue changes in the perf report headline by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13567](https://github.com/vimeo/psalm/pull/13567) - Let the BC check accept the growing list of stubbed extensions (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13590](https://github.com/vimeo/psalm/pull/13590) - Merge 6.x into master by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13597](https://github.com/vimeo/psalm/pull/13597) - Perf: keep statements of inlined constructor callees with arrayCache on (-5 to -7 % CPU) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13589](https://github.com/vimeo/psalm/pull/13589) ##### Other changes - fix(closure): keep what a closure writes to a by-reference variable before it returns by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13177](https://github.com/vimeo/psalm/pull/13177) - fix(mixin): forward a static call to the mixin that has the method by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13202](https://github.com/vimeo/psalm/pull/13202) #### New Contributors - [@&#8203;1cbyc](https://github.com/1cbyc) made their first contribution in [#&#8203;13472](https://github.com/vimeo/psalm/pull/13472) - [@&#8203;Mirco91](https://github.com/Mirco91) made their first contribution in [#&#8203;11852](https://github.com/vimeo/psalm/pull/11852) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.3.0...7.3.1> ### [`v7.3.0`](https://github.com/vimeo/psalm/releases/tag/7.3.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.2.1...7.3.0) <!-- Release notes generated using configuration in .github/release.yml at 6480ee65f252d9829b0c5a49d44c1fa263babfa2 --> #### What's Changed ##### Features - ⭐️ Let plugins declare the issues Psalter can fix by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13515](https://github.com/vimeo/psalm/pull/13515) ##### Fixes - \[7.x] Keep statements of inlined constructor callees: \~15% less wall time and CPU on Laravel (arrayCache=false) by [@&#8203;jarstelfox](https://github.com/jarstelfox) in [#&#8203;13495](https://github.com/vimeo/psalm/pull/13495) - Fix: crash when a class is named only in a template's bound by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13503](https://github.com/vimeo/psalm/pull/13503) - ✨ Fix param-conditional return taking both branches for `$this`/`static` param types by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13494](https://github.com/vimeo/psalm/pull/13494) - Fix: crash of multi-threaded runs without posix by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13517](https://github.com/vimeo/psalm/pull/13517) - Fix: NoInterfaceProperties on a hooked interface property of an intersection type by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13452](https://github.com/vimeo/psalm/pull/13452) - Fix: whitespace around `|` in docblock types drops union members or invalidates `@method` by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13457](https://github.com/vimeo/psalm/pull/13457) - Fix Psalter ignoring the type of static property fetches by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13529](https://github.com/vimeo/psalm/pull/13529) - Fix: hooked interface properties on intersections with a generic interface or a class by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13530](https://github.com/vimeo/psalm/pull/13530) - Fix crash when scope summaries contain non-UTF-8 strings by [@&#8203;MohannadElemary](https://github.com/MohannadElemary) in [#&#8203;13518](https://github.com/vimeo/psalm/pull/13518) - Fix: class property checks lost on intersections with a hooked interface by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13532](https://github.com/vimeo/psalm/pull/13532) - Fix: Psalter rewrites self/static/parent in static property references when renaming a class by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13533](https://github.com/vimeo/psalm/pull/13533) ##### Internal changes - Perf: Avoid quadratic copying when closing dependent classlikes in Populator (\~2.5% faster on a big app) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13508](https://github.com/vimeo/psalm/pull/13508) - chore(baseline): drop the ImplicitToStringCast entry that [#&#8203;11798](https://github.com/vimeo/psalm/issues/11798) made unused by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13507](https://github.com/vimeo/psalm/pull/13507) - Fix PHPUnit plugin diagnostics in self-analysis by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13524](https://github.com/vimeo/psalm/pull/13524) - Perf: Skip building code use edges that are not recorded when consolidating analysed data (\~2% faster on a big app) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13509](https://github.com/vimeo/psalm/pull/13509) ##### Other changes - Fix method name casing in `MissingOverrideAttribute` check by [@&#8203;maximal](https://github.com/maximal) in [#&#8203;11798](https://github.com/vimeo/psalm/pull/11798) - Fix CI Windows path by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13525](https://github.com/vimeo/psalm/pull/13525) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.2.1...7.3.0> ### [`v7.2.1`](https://github.com/vimeo/psalm/releases/tag/7.2.1) [Compare Source](https://github.com/vimeo/psalm/compare/7.2.0...7.2.1) <!-- Release notes generated using configuration in .github/release.yml at 127f608db981d5e1d023603514f7bbfcaae8f570 --> #### What's Changed ##### Fixes - fix(traits): a visibility a trait gives to the methods it uses from another trait reaches its class [#&#8203;6025](https://github.com/vimeo/psalm/issues/6025) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13276](https://github.com/vimeo/psalm/pull/13276) - fix(new-static): do not report UnsafeInstantiation for a class implementing an interface with a constructor [#&#8203;6481](https://github.com/vimeo/psalm/issues/6481) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13265](https://github.com/vimeo/psalm/pull/13265) - fix(operands): don't report \*\* of different numeric types in strict operands mode by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12638](https://github.com/vimeo/psalm/pull/12638) - fix(statements): analyse an interface or an enum declared in another statement by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13129](https://github.com/vimeo/psalm/pull/13129) - fix(assertions): inherit assert-if-true/false from an overridden method and resolve static to the called class [#&#8203;6164](https://github.com/vimeo/psalm/issues/6164) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13283](https://github.com/vimeo/psalm/pull/13283) - fix(traits): ignore type arguments of require-extends and require-implements by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12955](https://github.com/vimeo/psalm/pull/12955) - fix(arrays): keep a list a list when a nested item of it is written through its own key by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12647](https://github.com/vimeo/psalm/pull/12647) - fix(assertions): bool variable identity with true/false keeps its assignment clauses by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12772](https://github.com/vimeo/psalm/pull/12772) - feat(property_exists): type property_exists() of a declared property as true so redundant checks are reported [#&#8203;10436](https://github.com/vimeo/psalm/issues/10436) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13284](https://github.com/vimeo/psalm/pull/13284) - fix(analysis): check property initialisation at every constructor return by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13085](https://github.com/vimeo/psalm/pull/13085) - Do not report a non-empty-array assertion on a possibly empty array as redundant by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13310](https://github.com/vimeo/psalm/pull/13310) - Do not report a paradox between the conditions of one match arm by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13311](https://github.com/vimeo/psalm/pull/13311) - Do not treat the value of a CLI option as a path to check by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13321](https://github.com/vimeo/psalm/pull/13321) - Do not require every key of a literal union after array_key_exists by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13317](https://github.com/vimeo/psalm/pull/13317) - Use the class of an intersection that declares the property by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13320](https://github.com/vimeo/psalm/pull/13320) - Narrow after a negated instanceof static by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13312](https://github.com/vimeo/psalm/pull/13312) - fix(reconciler): a variable holding one literal key is that key for empty() by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13366](https://github.com/vimeo/psalm/pull/13366) - fix(closure): capturing an undefined variable by reference is not an undefined variable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13363](https://github.com/vimeo/psalm/pull/13363) - feat(stubs): add the constants of the curl, ldap and openssl extensions by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13349](https://github.com/vimeo/psalm/pull/13349) - fix(loop): link the data flow of the last loop pass to the reads of the first by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13343](https://github.com/vimeo/psalm/pull/13343) - Infer a template from a class-string bounded template input by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13331](https://github.com/vimeo/psalm/pull/13331) - Fix InternalClass and InternalProperty not reported outside classes by [@&#8203;roxblnfk](https://github.com/roxblnfk) in [#&#8203;13137](https://github.com/vimeo/psalm/pull/13137) - \[7.x] Cut \~280 MB per forked worker's taint graph by unserializing paths without a property table by [@&#8203;jarstelfox](https://github.com/jarstelfox) in [#&#8203;13080](https://github.com/vimeo/psalm/pull/13080) - fix(enums): value-of<> of a constant of an enum resolves the constant by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13300](https://github.com/vimeo/psalm/pull/13300) - Cast the index column of array_column to array keys by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13313](https://github.com/vimeo/psalm/pull/13313) - fix(algebra): a condition is paradoxical when all the clauses of its negation are implied by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13358](https://github.com/vimeo/psalm/pull/13358) - fix(traits): follow a method of a nested trait when checking what a constructor sets by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12673](https://github.com/vimeo/psalm/pull/12673) - fix(inheritance): check omitted optional parameters of interfaces, accept variadic parameters by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13095](https://github.com/vimeo/psalm/pull/13095) - Fix --init error level for paths containing vendor or stub by [@&#8203;MohannadElemary](https://github.com/MohannadElemary) in [#&#8203;13338](https://github.com/vimeo/psalm/pull/13338) - Falsy nullsafe call result no longer makes its receiver null ([#&#8203;6237](https://github.com/vimeo/psalm/issues/6237), [#&#8203;6717](https://github.com/vimeo/psalm/issues/6717)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12739](https://github.com/vimeo/psalm/pull/12739) - Honour the visibility of a trait alias when following constructor calls by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13319](https://github.com/vimeo/psalm/pull/13319) - fix(cli): don't print git's stderr when collecting source control info by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13417](https://github.com/vimeo/psalm/pull/13417) - fix(assignment): nested write to an existing list offset keeps the list by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13408](https://github.com/vimeo/psalm/pull/13408) - fix(call): [@&#8203;param-out](https://github.com/param-out) template is not widened by the argument's own type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13426](https://github.com/vimeo/psalm/pull/13426) - fix(templates): resolve the own templates of an implemented template argument at the call by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13400](https://github.com/vimeo/psalm/pull/13400) - fix(templates): get_class($x) binds a class-string<T> template to the class of $x by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13378](https://github.com/vimeo/psalm/pull/13378) - fix(magic-get): call \_\_get with the property name as written, not as a string literal by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13397](https://github.com/vimeo/psalm/pull/13397) - fix(cast): string cast of an intersection uses the narrowest \_\_toString by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13421](https://github.com/vimeo/psalm/pull/13421) - fix(language-server): the quick fix for an issue inserts the suppression instead of rewriting the line by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13383](https://github.com/vimeo/psalm/pull/13383) - fix(loops): break N tells the outer loop it targets about the break by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13376](https://github.com/vimeo/psalm/pull/13376) - fix(config): an issue named twice in the issueHandlers keeps what both elements say by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13404](https://github.com/vimeo/psalm/pull/13404) - fix(docblock): trailing semicolon after a parameter name by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13410](https://github.com/vimeo/psalm/pull/13410) - \[7.x] Cut forked taint runs \~40% (700 s to 413 s) by serializing taint nodes with an index into a list of locations by [@&#8203;jarstelfox](https://github.com/jarstelfox) in [#&#8203;13074](https://github.com/vimeo/psalm/pull/13074) - fix(ternary): keep variables assigned in every branch of a nested ternary or match by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13395](https://github.com/vimeo/psalm/pull/13395) - fix(docblock): a TypeParseTreeException in a [@&#8203;mixin](https://github.com/mixin) / [@&#8203;psalm-require-](https://github.com/psalm-require-)\* type is an issue, not a crash by [@&#8203;GBra-4-669](https://github.com/GBra-4-669) in [#&#8203;13158](https://github.com/vimeo/psalm/pull/13158) - fix(array-fetch): a missing literal key in isset/?? no longer makes the fetch mixed by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13427](https://github.com/vimeo/psalm/pull/13427) - Forget the issues of the old body of a method whose body got shorter by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13476](https://github.com/vimeo/psalm/pull/13476) - fix(templates): resolve the other templates a constraint names when new leaves a template unbound by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13090](https://github.com/vimeo/psalm/pull/13090) - fix(static-props): static::$x is not the same variable as self::$x by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13364](https://github.com/vimeo/psalm/pull/13364) - fix(assertions): say "empty array" when an array is compared with \[] by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12652](https://github.com/vimeo/psalm/pull/12652) ##### Docs - docs: correct resolveFromConfigFile default and cacheDirectory note by [@&#8203;ZainnQureshii](https://github.com/ZainnQureshii) in [#&#8203;13481](https://github.com/vimeo/psalm/pull/13481) ##### Internal changes - Fix CI after interaction between two PR by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13490](https://github.com/vimeo/psalm/pull/13490) - fix CI after regression by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13492](https://github.com/vimeo/psalm/pull/13492) ##### Other changes - fix(templates): equality bounds that are type variables of the same type are one type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13403](https://github.com/vimeo/psalm/pull/13403) - fix(plugins): FunctionCasingChecker and trait aliases by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13416](https://github.com/vimeo/psalm/pull/13416) #### New Contributors - [@&#8203;ZainnQureshii](https://github.com/ZainnQureshii) made their first contribution in [#&#8203;13481](https://github.com/vimeo/psalm/pull/13481) - [@&#8203;MohannadElemary](https://github.com/MohannadElemary) made their first contribution in [#&#8203;13338](https://github.com/vimeo/psalm/pull/13338) - [@&#8203;GBra-4-669](https://github.com/GBra-4-669) made their first contribution in [#&#8203;13158](https://github.com/vimeo/psalm/pull/13158) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.2.0...7.2.1> ### [`v7.2.0`](https://github.com/vimeo/psalm/releases/tag/7.2.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.1.0...7.2.0) <!-- Release notes generated using configuration in .github/release.yml at 7c1fcd8a86b7912663bffd385da323dd8dcce1c5 --> #### What's Changed ##### Features - Report `HiddenGeneratorReturn` for a value a generator returns through a type without Generator by [@&#8203;alies-dev](https://github.com/alies-dev) & [@&#8203;azjezz](https://github.com/azjezz) in [#&#8203;13485](https://github.com/vimeo/psalm/pull/13485) ##### Fixes - fix(docblock): check the classes of [@&#8203;global](https://github.com/global) types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13170](https://github.com/vimeo/psalm/pull/13170) - Fix: static bound to a receiver is bound again on every call inside a template argument (also fixes OOM) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13442](https://github.com/vimeo/psalm/pull/13442) - Fix: show the auto-fix suggestion footer when taint analysis runs by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13450](https://github.com/vimeo/psalm/pull/13450) - fix(types): combining object shapes keeps the properties of both by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13444](https://github.com/vimeo/psalm/pull/13444) - fix(stubs): the inner iterator template of the SPL iterator wrappers has a default by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13443](https://github.com/vimeo/psalm/pull/13443) - fix(types): a narrower native return type wins over an inherited docblock with a \_\_toString coercion by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12959](https://github.com/vimeo/psalm/pull/12959) - Give MethodParamsProviderEvent the location of the call by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13325](https://github.com/vimeo/psalm/pull/13325) - fix(scanner): suppress MissingClassConstType on the class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12932](https://github.com/vimeo/psalm/pull/12932) - Accept non-ASCII variable names in [@&#8203;param](https://github.com/param), [@&#8203;param-out](https://github.com/param-out), [@&#8203;global](https://github.com/global) and [@&#8203;property](https://github.com/property) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12700](https://github.com/vimeo/psalm/pull/12700) - fix(callmap): mysqli get_warnings may return false by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12826](https://github.com/vimeo/psalm/pull/12826) - fix(alter): keep the data flow of a read fixed as possibly undefined by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13386](https://github.com/vimeo/psalm/pull/13386) - Infer a literal string for trim() of a literal string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12602](https://github.com/vimeo/psalm/pull/12602) - Keep $this as it was after following a method called in a constructor by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13332](https://github.com/vimeo/psalm/pull/13332) - fix(by-ref): accept a constant or call result for a parameter only the stub takes by reference [#&#8203;7505](https://github.com/vimeo/psalm/issues/7505) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13263](https://github.com/vimeo/psalm/pull/13263) - fix(stubs): type array_find, array_find_key, array_first and array_last by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12642](https://github.com/vimeo/psalm/pull/12642) - Treat a while loop whose condition holds for the literal start as always entered by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12622](https://github.com/vimeo/psalm/pull/12622) - fix(throws): report uncaught exceptions thrown inside foreach, for and while loops by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13229](https://github.com/vimeo/psalm/pull/13229) - fix(loop): the value of a foreach iteration is not the one the last iteration ended with by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13437](https://github.com/vimeo/psalm/pull/13437) - Don't crash psalter on properties declared together by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12599](https://github.com/vimeo/psalm/pull/12599) - Honour an inline [@&#8203;psalm-suppress](https://github.com/psalm-suppress) UnusedVariable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12611](https://github.com/vimeo/psalm/pull/12611) - Don't report a nullable array key from an ignored nullable return by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12605](https://github.com/vimeo/psalm/pull/12605) - Keep a concatenation with mixed no emptier than its other operand by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12591](https://github.com/vimeo/psalm/pull/12591) - Accept <directory> in <stubs> by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12600](https://github.com/vimeo/psalm/pull/12600) - Apply a conditional [@&#8203;psalm-taint-escape](https://github.com/psalm-taint-escape) to calls of instance methods by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12621](https://github.com/vimeo/psalm/pull/12621) - Accept interfaces in universalObjectCrates and cover their implementations by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12612](https://github.com/vimeo/psalm/pull/12612) - fix(ternary): narrow by the branch that finishes when the other one throws or exits by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12639](https://github.com/vimeo/psalm/pull/12639) - fix(properties): report docblock type issues of a typed property at the docblock by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12636](https://github.com/vimeo/psalm/pull/12636) - Scan the classes of the global variables of the config by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12631](https://github.com/vimeo/psalm/pull/12631) - Give the closure of a method of a generic object the templates of the object by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12624](https://github.com/vimeo/psalm/pull/12624) - fix(int-range): don't overflow the bound for a comparison with PHP_INT_MAX or PHP_INT_MIN by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12644](https://github.com/vimeo/psalm/pull/12644) - fix(property-fetch): read a shape property of an interface intersected with an object shape by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12666](https://github.com/vimeo/psalm/pull/12666) - fix(property-assign): assign a private property of the current class on an object of a child class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12669](https://github.com/vimeo/psalm/pull/12669) - fix(callmap): accept any type as the argument of assert() by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12664](https://github.com/vimeo/psalm/pull/12664) - fix(param-default): report a new-expression default that cannot satisfy an interface type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12661](https://github.com/vimeo/psalm/pull/12661) - fix(reconciler): don't take the id of static::class or self::class for a literal array key by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12650](https://github.com/vimeo/psalm/pull/12650) - Report str_replace() with fewer replacements than searches by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12604](https://github.com/vimeo/psalm/pull/12604) - fix(static-calls): self::, static:: and parent:: return the static type of the calling class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12643](https://github.com/vimeo/psalm/pull/12643) - feat(assertions): add [@&#8203;psalm-assert](https://github.com/psalm-assert) array-key-exists $array\[$key] by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12634](https://github.com/vimeo/psalm/pull/12634) - fix(conditions): the right operand of && keeps what the left one guards by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12657](https://github.com/vimeo/psalm/pull/12657) - fix(try): a finally also sees what a try nested in the body throws or returns by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12675](https://github.com/vimeo/psalm/pull/12675) - Fix: empty array takes both branches of a conditional with a union subject containing non-empty-array by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12447](https://github.com/vimeo/psalm/pull/12447) - Fix: `empty` and `falsy` conditional conditions resolve to the else branch by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12448](https://github.com/vimeo/psalm/pull/12448) - fix(assertions): keep every alternative of a union in [@&#8203;psalm-assert-if-true/false](https://github.com/psalm-assert-if-true/false) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12635](https://github.com/vimeo/psalm/pull/12635) - Don't report a generator that never finishes as returning never by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12698](https://github.com/vimeo/psalm/pull/12698) - fix(callmap): choose an overload by the parameter a named argument names by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12683](https://github.com/vimeo/psalm/pull/12683) - Keep what a continue assigns to loop-defined variables in the do-while condition by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12699](https://github.com/vimeo/psalm/pull/12699) - Keep analyzing after an undefined or possibly undefined variable in a closure use list by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12704](https://github.com/vimeo/psalm/pull/12704) - Include the properties of the traits a class uses in properties-of by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12711](https://github.com/vimeo/psalm/pull/12711) - Give a variable assigned in finally the type it has after the finally block by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12733](https://github.com/vimeo/psalm/pull/12733) - Concatenate literals with small int ranges as literals ([#&#8203;10947](https://github.com/vimeo/psalm/issues/10947)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12740](https://github.com/vimeo/psalm/pull/12740) - Evaluate the conditional type of a parameter in the body of the function by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12736](https://github.com/vimeo/psalm/pull/12736) - Keep a boolean variable's narrowing after an || with it as left operand ([#&#8203;12395](https://github.com/vimeo/psalm/issues/12395)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12751](https://github.com/vimeo/psalm/pull/12751) - Report comparisons guaranteed by an int range bound as redundant ([#&#8203;8059](https://github.com/vimeo/psalm/issues/8059)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12741](https://github.com/vimeo/psalm/pull/12741) - Keep an instantiable class among its [@&#8203;psalm-inheritors](https://github.com/psalm-inheritors) when narrowing a negated instanceof by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12713](https://github.com/vimeo/psalm/pull/12713) - Read the flags of html functions by name for taint analysis ([#&#8203;12250](https://github.com/vimeo/psalm/issues/12250)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12759](https://github.com/vimeo/psalm/pull/12759) - interface-string and enum-string only accept literals of interfaces and enums ([#&#8203;12577](https://github.com/vimeo/psalm/issues/12577)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12754](https://github.com/vimeo/psalm/pull/12754) - fix(include): normalize the path of a file_exists guard by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12778](https://github.com/vimeo/psalm/pull/12778) - fix(taint): keep pseudo-property taint when read through an object shape by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12793](https://github.com/vimeo/psalm/pull/12793) - fix(traits): honour insteadof and trait-qualified aliases by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12775](https://github.com/vimeo/psalm/pull/12775) - fix(attributes): analyse the attributes of class constants by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12789](https://github.com/vimeo/psalm/pull/12789) - feat(sarif): add a security-severity score to the rules of taint issues by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12809](https://github.com/vimeo/psalm/pull/12809) - fix(properties): a property typed with an imported alias is invariant with the parent's by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12827](https://github.com/vimeo/psalm/pull/12827) - fix(unused-code): keep the method of a callable array passed as array|callable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12848](https://github.com/vimeo/psalm/pull/12848) - fix(callables): a callable array of an intersection finds the method in any of its types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12831](https://github.com/vimeo/psalm/pull/12831) - Report a negated method_exists() of a class with the method as impossible by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12730](https://github.com/vimeo/psalm/pull/12730) - Remove the excluded classes from the bound of a template param after a negated instanceof by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12718](https://github.com/vimeo/psalm/pull/12718) - fix(types): reconcile type variables of namespaced file-scope code by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12858](https://github.com/vimeo/psalm/pull/12858) - fix(args): named argument named like the variadic parameter is not a duplicate by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12866](https://github.com/vimeo/psalm/pull/12866) - feat(constants): resolve << and >> in constant expressions by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12878](https://github.com/vimeo/psalm/pull/12878) - fix(operators): allow arithmetic on BcMath\Number by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12870](https://github.com/vimeo/psalm/pull/12870) - fix(types): no redundant property initialization check in constructor by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12859](https://github.com/vimeo/psalm/pull/12859) - fix(types): (array) on a Closure is a one-element list by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12881](https://github.com/vimeo/psalm/pull/12881) - fix(array-access): name the array in messages when the expression has no variable id by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12887](https://github.com/vimeo/psalm/pull/12887) - fix(docblock): a [@&#8203;method](https://github.com/method) named like a type keyword is a method by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12895](https://github.com/vimeo/psalm/pull/12895) - fix(switch): keep analysing a switch after a paradoxical default by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12879](https://github.com/vimeo/psalm/pull/12879) - fix(cli): --version does not need the autoloaders of the project by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12917](https://github.com/vimeo/psalm/pull/12917) - fix(call): a method of an intersected type is not routed through \_\_call of another by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12970](https://github.com/vimeo/psalm/pull/12970) - fix(stubs): class_parents, class_implements and class_uses never return false for an object by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12905](https://github.com/vimeo/psalm/pull/12905) - fix(loop): a variable unset in a loop body is possibly undefined in the next iteration by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12960](https://github.com/vimeo/psalm/pull/12960) - fix(switch): variables assigned by every case count as assigned in the enclosing scope by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12933](https://github.com/vimeo/psalm/pull/12933) - fix(templates): resolve inherited method docblock types through subclass templates by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12951](https://github.com/vimeo/psalm/pull/12951) - fix(enum): resolve value-of<T> argument of Enum::from and tryFrom by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12943](https://github.com/vimeo/psalm/pull/12943) - fix(messages): name a missing return type mixed in the signature mismatch by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12820](https://github.com/vimeo/psalm/pull/12820) - parent::/self::/static:: calls of a method returning $this return $this ([#&#8203;12275](https://github.com/vimeo/psalm/issues/12275)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12753](https://github.com/vimeo/psalm/pull/12753) - fix(assertions): keep every member of a union in assert-if-true and assert-if-false by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12836](https://github.com/vimeo/psalm/pull/12836) - fix(array_filter): narrow the result of a call with a string callable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12991](https://github.com/vimeo/psalm/pull/12991) - fix(static-call): a static call of a method no class defines keeps its return type while properties are collected by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13081](https://github.com/vimeo/psalm/pull/13081) - fix(unused): magic methods keep their required params and \_\_callStatic is used by magic static calls by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13007](https://github.com/vimeo/psalm/pull/13007) - fix(analysis): drop known elements of a variable redeclared by [@&#8203;var](https://github.com/var) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13088](https://github.com/vimeo/psalm/pull/13088) - feat(generators): report an implicit return of a generator whose return type isn't nullable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13102](https://github.com/vimeo/psalm/pull/13102) - fix(echo): cast an object operand to string whatever the analysis mode by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13104](https://github.com/vimeo/psalm/pull/13104) - fix(types): resolve static of parent:: calls to the calling class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12845](https://github.com/vimeo/psalm/pull/12845) - fix(foreach): assign the key after the value like PHP by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12792](https://github.com/vimeo/psalm/pull/12792) - A static call of an inaccessible method goes to \_\_callStatic ([#&#8203;11876](https://github.com/vimeo/psalm/issues/11876)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12767](https://github.com/vimeo/psalm/pull/12767) - fix(templates): a template replaced by an intersection keeps the intersection by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12976](https://github.com/vimeo/psalm/pull/12976) - fix(foreach): type the key and the value of a class-string-map by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12818](https://github.com/vimeo/psalm/pull/12818) - Check the native type of a parameter or property whose docblock type is mixed or a template by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12703](https://github.com/vimeo/psalm/pull/12703) - Combine enum ->value/->name types across the receiver's parts ([#&#8203;11171](https://github.com/vimeo/psalm/issues/11171)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12744](https://github.com/vimeo/psalm/pull/12744) - fix(reconciler): narrow iterable with a class through Traversable by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12773](https://github.com/vimeo/psalm/pull/12773) - fix(unused): analyse the arguments of a call to an unknown function or class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12802](https://github.com/vimeo/psalm/pull/12802) - fix(docblock): check only the last docblock type of a property or constant by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13117](https://github.com/vimeo/psalm/pull/13117) - fix(cli): only a SARIF report keeps a taint analysis in GitHub Actions from failing by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13233](https://github.com/vimeo/psalm/pull/13233) - fix(types): keep the type of a declared key when combining unsealed arrays by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13175](https://github.com/vimeo/psalm/pull/13175) - foreach over a nullable or falsable value may not run ([#&#8203;12513](https://github.com/vimeo/psalm/issues/12513)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12746](https://github.com/vimeo/psalm/pull/12746) - fix(try): a variable assigned in a do-while that runs once is assigned after the try by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13205](https://github.com/vimeo/psalm/pull/13205) - fix(args): report unpacking a union of an array and a non-iterable type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13127](https://github.com/vimeo/psalm/pull/13127) - fix(constructors): a class marked [@&#8203;psalm-consistent-constructor](https://github.com/psalm-consistent-constructor) keeps the constructor it inherits by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13084](https://github.com/vimeo/psalm/pull/13084) - fix(properties): keep the initializing class of a property assigned a template-replaced type [#&#8203;10097](https://github.com/vimeo/psalm/issues/10097) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13260](https://github.com/vimeo/psalm/pull/13260) - fix(stubs): iterating a Ds map, set, vector or deque is mutation-free [#&#8203;12433](https://github.com/vimeo/psalm/issues/12433) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13272](https://github.com/vimeo/psalm/pull/13272) - fix(static): resolve `static` in the parameters of a static method called by class name to that class [#&#8203;5535](https://github.com/vimeo/psalm/issues/5535) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13261](https://github.com/vimeo/psalm/pull/13261) - fix(array-functions): array_udiff() and the other callback-comparing diff functions return the first array's entries [#&#8203;10062](https://github.com/vimeo/psalm/issues/10062) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13270](https://github.com/vimeo/psalm/pull/13270) - fix(destructuring): report MixedAssignment for a mixed value destructured by key [#&#8203;4345](https://github.com/vimeo/psalm/issues/4345) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13274](https://github.com/vimeo/psalm/pull/13274) - fix(assertions): keep the existing array type where a negated array assertion holds [#&#8203;13166](https://github.com/vimeo/psalm/issues/13166) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13269](https://github.com/vimeo/psalm/pull/13269) - A type alias that uses the template of its class is an InvalidDocblock, in or out of a namespace by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12734](https://github.com/vimeo/psalm/pull/12734) - A literal naming a function is a string for a Closure|string param ([#&#8203;12585](https://github.com/vimeo/psalm/issues/12585)) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12755](https://github.com/vimeo/psalm/pull/12755) - fix(traits): do not inherit a private property imported from a trait into subclasses [#&#8203;5062](https://github.com/vimeo/psalm/issues/5062) by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13264](https://github.com/vimeo/psalm/pull/13264) - fix(scanner): resolving a class_exists guard must not run the autoloader by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12807](https://github.com/vimeo/psalm/pull/12807) - fix(reconciler): negate the nested assertions of an assigning condition by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13124](https://github.com/vimeo/psalm/pull/13124) - Fix: namespaced printing drops class-string type arguments and the interface-string kind by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13479](https://github.com/vimeo/psalm/pull/13479) - Fix: crash on first-class callables in `count()`/`gettype()`/`get_class()` conditions by [@&#8203;alies-dev](https://github.com/alies-dev) & [@&#8203;azjezz](https://github.com/azjezz) in [#&#8203;13484](https://github.com/vimeo/psalm/pull/13484) - Infer 'Array' for array-to-string casts by [@&#8203;alies-dev](https://github.com/alies-dev) & [@&#8203;azjezz](https://github.com/azjezz) in [#&#8203;13486](https://github.com/vimeo/psalm/pull/13486) ##### Docs - docs: link memoizeMethodCallResults to memoization by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13456](https://github.com/vimeo/psalm/pull/13456) ##### Internal changes - Add Tempest to the perf corpus and bump corpus projects by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13459](https://github.com/vimeo/psalm/pull/13459) - Stop bundling `psalm/plugin-sabre-event` and allow `psalm/plugin-phpunit` 1.0 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13478](https://github.com/vimeo/psalm/pull/13478) - Allow psalm/plugin-phpunit 0.22 by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13480](https://github.com/vimeo/psalm/pull/13480) - Refactor to prevent ComplexMethod by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13482](https://github.com/vimeo/psalm/pull/13482) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.1.0...7.2.0> ### [`v7.1.0`](https://github.com/vimeo/psalm/releases/tag/7.1.0) [Compare Source](https://github.com/vimeo/psalm/compare/7.0.5...7.1.0) <!-- Release notes generated using configuration in .github/release.yml at d43883d6651b6a69e89028c65b36dcfdbb79105f --> #### What's Changed ##### Features - fix(parser): allow a trailing comma in array and list shapes by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13228](https://github.com/vimeo/psalm/pull/13228) ##### Fixes - :sparkles: \[[#&#8203;11509](https://github.com/vimeo/psalm/issues/11509)] Fix regression about iterables, list and conditional types by [@&#8203;andrew-demb](https://github.com/andrew-demb) in [#&#8203;11558](https://github.com/vimeo/psalm/pull/11558) - test(psalter): pin a constructor inherited from another file with MissingThrowsDocblock by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13346](https://github.com/vimeo/psalm/pull/13346) - feat(stubs): substr of a non-empty-string from its start is non-empty by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12921](https://github.com/vimeo/psalm/pull/12921) - fix(properties): the self of a trait property signature is the using class by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;12919](https://github.com/vimeo/psalm/pull/12919) - fix(isset): a variable not set by the isset branch stays possibly undefined after the if by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13046](https://github.com/vimeo/psalm/pull/13046) - fix(unused): a call on the left of ?? is used by the coalesce by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13231](https://github.com/vimeo/psalm/pull/13231) - fix(call): give the callback of usort() and its siblings the element type of the array by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13347](https://github.com/vimeo/psalm/pull/13347) - fix(call): keep the narrowed type of an unchanged argument in strict_types by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13341](https://github.com/vimeo/psalm/pull/13341) - fix(parser): accept a name after the = or ... of a callable param by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13226](https://github.com/vimeo/psalm/pull/13226) - fix(types): a literal string id does not use the C escapes \a and \b by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13209](https://github.com/vimeo/psalm/pull/13209) - fix(loop): report break/continue levels exceeding the enclosing structures by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13210](https://github.com/vimeo/psalm/pull/13210) - fix(foreach): drop the invalid-iteration null of an Iterator's current() and key() by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13218](https://github.com/vimeo/psalm/pull/13218) - fix(interface): report an undefined interface in an interface's extends list by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13212](https://github.com/vimeo/psalm/pull/13212) - fix(inheritance): compare constructors that override an abstract constructor by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13211](https://github.com/vimeo/psalm/pull/13211) - fix(docblock): report the class issues of a [@&#8203;var](https://github.com/var) type at the docblock by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13182](https://github.com/vimeo/psalm/pull/13182) - fix(return): report a void|never docblock return type that can only return implicitly by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13169](https://github.com/vimeo/psalm/pull/13169) - fix(strings): keep the literals of a union in an interpolated string by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13130](https://github.com/vimeo/psalm/pull/13130) - fix(try): a catch whose every path leaves does not make the variables of the try possibly undefined by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13183](https://github.com/vimeo/psalm/pull/13183) - fix(unused): report the unused result of a pure static method call by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13197](https://github.com/vimeo/psalm/pull/13197) - fix(properties): a redeclared protected property is accessible from the classes of its first declaration by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13203](https://github.com/vimeo/psalm/pull/13203) - fix(docblock): a tag of a single-line docblock has no trailing blank by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13193](https://github.com/vimeo/psalm/pull/13193) - Handle missing parents when checking inherited constants by [@&#8203;orklah](https://github.com/orklah) in [#&#8203;13414](https://github.com/vimeo/psalm/pull/13414) - fix(params): honour [@&#8203;psalm-suppress](https://github.com/psalm-suppress) InvalidParamDefault by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13172](https://github.com/vimeo/psalm/pull/13172) - fix(callable): resolve \[object, 'method'] callables to inherited and trait methods by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13214](https://github.com/vimeo/psalm/pull/13214) - fix(docblock): allow a trailing comma in a generic type by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13208](https://github.com/vimeo/psalm/pull/13208) - fix(stubs): FFI::memcmp prefers references but also accepts values by [@&#8203;jirkace](https://github.com/jirkace) in [#&#8203;13173](https://github.com/vimeo/psalm/pull/13173) - \[6.x] Fix crash when a closure unsets a by-reference captured variable (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12058](https://github.com/vimeo/psalm/pull/12058) - \[6.x] Fix type variables bounded by another type variable (backport) by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12059](https://github.com/vimeo/psalm/pull/12059) - Fix: don't report plugin-appended class and method suppressions as unused by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;12033](https://github.com/vimeo/psalm/pull/12033) ##### Internal changes - Accept negative integer keys in the composer build patch check by [@&#8203;danog](https://github.com/danog) in [#&#8203;13406](https://github.com/vimeo/psalm/pull/13406) - Fix 6.x CI: retry transient stub build failures, update array_first test by [@&#8203;danog](https://github.com/danog) in [#&#8203;13407](https://github.com/vimeo/psalm/pull/13407) - Merge 6.x into master by [@&#8203;alies-dev](https://github.com/alies-dev) in [#&#8203;13438](https://github.com/vimeo/psalm/pull/13438) **Full Changelog**: <https://github.com/vimeo/psalm/compare/7.0.5...7.1.0> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - Between 12:00 AM and 05:59 AM, only on Monday (`* 0-5 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjI0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJtaW5vciIsInBocCJdfQ==-->
chore(deps): update dependency vimeo/psalm to v7.3.1
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
CI / php (dev-master) (push) Successful in 24s
CI / php (dev-stable32) (push) Successful in 23s
CI / php (dev-stable33) (push) Successful in 23s
CI / php (dev-stable34) (push) Successful in 21s
CI / php (dev-stable35) (push) Successful in 23s
CI / standards (push) Has been cancelled
CI / server (32) (push) Has been cancelled
CI / server (35) (push) Has been cancelled
CI / javascript (push) Has been cancelled
CI / php (dev-master) (pull_request) Has been cancelled
CI / php (dev-stable32) (pull_request) Has been cancelled
CI / php (dev-stable33) (pull_request) Has been cancelled
CI / php (dev-stable34) (pull_request) Has been cancelled
CI / php (dev-stable35) (pull_request) Has been cancelled
CI / standards (pull_request) Has been cancelled
CI / server (32) (pull_request) Has been cancelled
CI / server (35) (pull_request) Has been cancelled
CI / javascript (pull_request) Has been cancelled
8b3ae9df06
chore(psalm): the baseline as the new Psalm records it
All checks were successful
CI / php (dev-master) (push) Successful in 30s
CI / php (dev-stable32) (push) Successful in 23s
CI / php (dev-stable33) (push) Successful in 23s
CI / php (dev-stable34) (push) Successful in 21s
CI / php (dev-stable35) (push) Successful in 24s
CI / standards (push) Successful in 36s
CI / javascript (push) Successful in 17s
CI / php (dev-master) (pull_request) Successful in 27s
CI / php (dev-stable32) (pull_request) Successful in 22s
CI / php (dev-stable33) (pull_request) Successful in 23s
CI / php (dev-stable34) (pull_request) Successful in 21s
CI / php (dev-stable35) (pull_request) Successful in 22s
CI / standards (pull_request) Successful in 32s
CI / javascript (pull_request) Successful in 17s
CI / server (32) (push) Successful in 1s
CI / server (35) (push) Successful in 1s
CI / server (32) (pull_request) Successful in 1s
CI / server (35) (pull_request) Successful in 2s
d448ae46ab
renovate-bot changed title from chore(deps): update dependency vimeo/psalm to v7.3.1 to chore(deps): update dependency vimeo/psalm to v7.3.2 2026-11-16 03:48:22 +00:00
renovate-bot force-pushed renovate/all-minor-patch from d448ae46ab
All checks were successful
CI / php (dev-master) (push) Successful in 30s
CI / php (dev-stable32) (push) Successful in 23s
CI / php (dev-stable33) (push) Successful in 23s
CI / php (dev-stable34) (push) Successful in 21s
CI / php (dev-stable35) (push) Successful in 24s
CI / standards (push) Successful in 36s
CI / javascript (push) Successful in 17s
CI / php (dev-master) (pull_request) Successful in 27s
CI / php (dev-stable32) (pull_request) Successful in 22s
CI / php (dev-stable33) (pull_request) Successful in 23s
CI / php (dev-stable34) (pull_request) Successful in 21s
CI / php (dev-stable35) (pull_request) Successful in 22s
CI / standards (pull_request) Successful in 32s
CI / javascript (pull_request) Successful in 17s
CI / server (32) (push) Successful in 1s
CI / server (35) (push) Successful in 1s
CI / server (32) (pull_request) Successful in 1s
CI / server (35) (pull_request) Successful in 2s
to d9e4c8773c
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
CI / php (dev-master) (push) Successful in 24s
CI / php (dev-stable32) (push) Successful in 26s
CI / php (dev-stable33) (push) Successful in 22s
CI / php (dev-stable34) (push) Successful in 24s
CI / php (dev-stable35) (push) Successful in 21s
CI / standards (push) Has been cancelled
CI / server (32) (push) Has been cancelled
CI / server (35) (push) Has been cancelled
CI / javascript (push) Has been cancelled
CI / php (dev-master) (pull_request) Has been cancelled
CI / php (dev-stable32) (pull_request) Has been cancelled
CI / php (dev-stable33) (pull_request) Has been cancelled
CI / php (dev-stable34) (pull_request) Has been cancelled
CI / php (dev-stable35) (pull_request) Has been cancelled
CI / standards (pull_request) Has been cancelled
CI / server (32) (pull_request) Has been cancelled
CI / server (35) (pull_request) Has been cancelled
CI / javascript (pull_request) Has been cancelled
2026-11-16 03:48:22 +00:00
Compare
chore(psalm): the baseline as the new Psalm records it
All checks were successful
CI / php (dev-master) (push) Successful in 25s
CI / php (dev-stable32) (push) Successful in 23s
CI / php (dev-stable33) (push) Successful in 23s
CI / php (dev-stable34) (push) Successful in 23s
CI / php (dev-stable35) (push) Successful in 24s
CI / standards (push) Successful in 33s
CI / javascript (push) Successful in 18s
CI / php (dev-master) (pull_request) Successful in 27s
CI / php (dev-stable32) (pull_request) Successful in 22s
CI / php (dev-stable33) (pull_request) Successful in 24s
CI / php (dev-stable34) (pull_request) Successful in 23s
CI / php (dev-stable35) (pull_request) Successful in 22s
CI / standards (pull_request) Successful in 32s
CI / javascript (pull_request) Successful in 18s
CI / server (32) (push) Successful in 1s
CI / server (35) (push) Successful in 1s
CI / server (32) (pull_request) Successful in 1s
CI / server (35) (pull_request) Successful in 1s
9a3d967ee4
renovate-bot changed title from chore(deps): update dependency vimeo/psalm to v7.3.2 to chore(deps): update dependency vimeo/psalm to v7.11.0 2026-11-23 00:37:55 +00:00
renovate-bot force-pushed renovate/all-minor-patch from 9a3d967ee4
All checks were successful
CI / php (dev-master) (push) Successful in 25s
CI / php (dev-stable32) (push) Successful in 23s
CI / php (dev-stable33) (push) Successful in 23s
CI / php (dev-stable34) (push) Successful in 23s
CI / php (dev-stable35) (push) Successful in 24s
CI / standards (push) Successful in 33s
CI / javascript (push) Successful in 18s
CI / php (dev-master) (pull_request) Successful in 27s
CI / php (dev-stable32) (pull_request) Successful in 22s
CI / php (dev-stable33) (pull_request) Successful in 24s
CI / php (dev-stable34) (pull_request) Successful in 23s
CI / php (dev-stable35) (pull_request) Successful in 22s
CI / standards (pull_request) Successful in 32s
CI / javascript (pull_request) Successful in 18s
CI / server (32) (push) Successful in 1s
CI / server (35) (push) Successful in 1s
CI / server (32) (pull_request) Successful in 1s
CI / server (35) (pull_request) Successful in 1s
to 301cb595a3
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
regenerate-bot regenerating
CI / php (dev-stable32) (push) Successful in 1m47s
CI / standards (push) Failing after 1m58s
CI / javascript (push) Successful in 21s
CI / php (dev-master) (push) Successful in 1m52s
CI / php (dev-stable33) (push) Successful in 1m48s
CI / php (dev-stable35) (push) Successful in 1m46s
CI / server (32) (push) Successful in 3m1s
CI / php (dev-master) (pull_request) Successful in 1m46s
CI / server (35) (push) Successful in 3m0s
CI / php (dev-stable34) (pull_request) Successful in 1m53s
CI / php (dev-stable34) (push) Successful in 1m46s
CI / php (dev-stable32) (pull_request) Successful in 1m49s
CI / server (32) (pull_request) Successful in 3s
CI / php (dev-stable35) (pull_request) Successful in 1m52s
CI / standards (pull_request) Failing after 2m3s
CI / php (dev-stable33) (pull_request) Successful in 1m47s
CI / server (35) (pull_request) Successful in 3s
CI / javascript (pull_request) Successful in 19s
2026-11-23 00:37:55 +00:00
Compare

Tests of CI / php (dev-master): passed

17 passed, 0 failed, 0 skipped (17 tests, 0.0 s)

Of 0c4cb9fe8e, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-master- --> ### Tests of CI / php (dev-master): passed **17 passed, 0 failed, 0 skipped** (17 tests, 0.0 s) <sub>Of 0c4cb9fe8e, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/116), updated by every run.</sub>

Tests of CI / php (dev-stable32): passed

17 passed, 0 failed, 0 skipped (17 tests, 0.0 s)

Of 0c4cb9fe8e, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable32- --> ### Tests of CI / php (dev-stable32): passed **17 passed, 0 failed, 0 skipped** (17 tests, 0.0 s) <sub>Of 0c4cb9fe8e, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/116), updated by every run.</sub>

Tests of CI / php (dev-stable33): passed

17 passed, 0 failed, 0 skipped (17 tests, 1.8 s)

Of 0c4cb9fe8e, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable33- --> ### Tests of CI / php (dev-stable33): passed **17 passed, 0 failed, 0 skipped** (17 tests, 1.8 s) <sub>Of 0c4cb9fe8e, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/116), updated by every run.</sub>

Tests of CI / php (dev-stable34): passed

17 passed, 0 failed, 0 skipped (17 tests, 0.0 s)

Of 0c4cb9fe8e, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable34- --> ### Tests of CI / php (dev-stable34): passed **17 passed, 0 failed, 0 skipped** (17 tests, 0.0 s) <sub>Of 0c4cb9fe8e, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/116), updated by every run.</sub>

Tests of CI / php (dev-stable35): passed

17 passed, 0 failed, 0 skipped (17 tests, 0.0 s)

Of 0c4cb9fe8e, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable35- --> ### Tests of CI / php (dev-stable35): passed **17 passed, 0 failed, 0 skipped** (17 tests, 0.0 s) <sub>Of 0c4cb9fe8e, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/116), updated by every run.</sub>
renovate-bot force-pushed renovate/all-minor-patch from 301cb595a3
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
regenerate-bot regenerating
CI / php (dev-stable32) (push) Successful in 1m47s
CI / standards (push) Failing after 1m58s
CI / javascript (push) Successful in 21s
CI / php (dev-master) (push) Successful in 1m52s
CI / php (dev-stable33) (push) Successful in 1m48s
CI / php (dev-stable35) (push) Successful in 1m46s
CI / server (32) (push) Successful in 3m1s
CI / php (dev-master) (pull_request) Successful in 1m46s
CI / server (35) (push) Successful in 3m0s
CI / php (dev-stable34) (pull_request) Successful in 1m53s
CI / php (dev-stable34) (push) Successful in 1m46s
CI / php (dev-stable32) (pull_request) Successful in 1m49s
CI / server (32) (pull_request) Successful in 3s
CI / php (dev-stable35) (pull_request) Successful in 1m52s
CI / standards (pull_request) Failing after 2m3s
CI / php (dev-stable33) (pull_request) Successful in 1m47s
CI / server (35) (pull_request) Successful in 3s
CI / javascript (pull_request) Successful in 19s
to 56bec70a0b
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
CI / php (dev-stable32) (push) Successful in 1m45s
CI / php (dev-master) (push) Successful in 1m46s
CI / php (dev-stable33) (push) Successful in 1m46s
CI / server (32) (push) Successful in 2s
CI / server (35) (push) Successful in 3s
CI / javascript (push) Successful in 20s
CI / standards (push) Failing after 1m49s
CI / php (dev-stable34) (push) Successful in 1m44s
CI / php (dev-stable35) (push) Successful in 1m45s
CI / php (dev-master) (pull_request) Successful in 1m45s
CI / php (dev-stable33) (pull_request) Successful in 1m52s
CI / php (dev-stable32) (pull_request) Successful in 1m52s
CI / php (dev-stable34) (pull_request) Successful in 1m47s
CI / php (dev-stable35) (pull_request) Successful in 1m44s
CI / server (32) (pull_request) Successful in 2s
CI / server (35) (pull_request) Successful in 2s
CI / standards (pull_request) Failing after 1m46s
CI / javascript (pull_request) Successful in 18s
regenerate-bot the build failed (failure)
2026-11-23 03:42:51 +00:00
Compare
renovate-bot changed title from chore(deps): update dependency vimeo/psalm to v7.11.0 to chore(deps): update dependency vimeo/psalm to v7.12.0 2026-11-23 03:42:52 +00:00
renovate-bot force-pushed renovate/all-minor-patch from 56bec70a0b
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
CI / php (dev-stable32) (push) Successful in 1m45s
CI / php (dev-master) (push) Successful in 1m46s
CI / php (dev-stable33) (push) Successful in 1m46s
CI / server (32) (push) Successful in 2s
CI / server (35) (push) Successful in 3s
CI / javascript (push) Successful in 20s
CI / standards (push) Failing after 1m49s
CI / php (dev-stable34) (push) Successful in 1m44s
CI / php (dev-stable35) (push) Successful in 1m45s
CI / php (dev-master) (pull_request) Successful in 1m45s
CI / php (dev-stable33) (pull_request) Successful in 1m52s
CI / php (dev-stable32) (pull_request) Successful in 1m52s
CI / php (dev-stable34) (pull_request) Successful in 1m47s
CI / php (dev-stable35) (pull_request) Successful in 1m44s
CI / server (32) (pull_request) Successful in 2s
CI / server (35) (pull_request) Successful in 2s
CI / standards (pull_request) Failing after 1m46s
CI / javascript (pull_request) Successful in 18s
regenerate-bot the build failed (failure)
to 09911b1d03
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
CI / server (32) (push) Successful in 2m59s
CI / server (32) (pull_request) Successful in 4s
CI / server (35) (push) Successful in 3m7s
CI / server (35) (pull_request) Successful in 2s
CI / php (dev-master) (push) Successful in 1m52s
CI / php (dev-stable33) (push) Successful in 1m47s
CI / php (dev-stable35) (push) Successful in 1m43s
CI / standards (push) Successful in 1m54s
CI / php (dev-master) (pull_request) Successful in 1m46s
CI / php (dev-stable33) (pull_request) Successful in 1m43s
CI / php (dev-stable34) (push) Successful in 1m42s
CI / php (dev-stable35) (pull_request) Successful in 1m45s
CI / standards (pull_request) Successful in 1m56s
CI / php (dev-stable32) (push) Successful in 1m51s
CI / javascript (push) Successful in 20s
CI / php (dev-stable32) (pull_request) Successful in 1m46s
CI / javascript (pull_request) Successful in 20s
CI / php (dev-stable34) (pull_request) Successful in 1m43s
regenerate-bot regenerated: chore(psalm): the baseline as the new Psalm records it
2026-11-23 15:25:13 +00:00
Compare
chore(psalm): the baseline as the new Psalm records it
All checks were successful
CI / php (dev-master) (pull_request) Successful in 1m44s
CI / php (dev-stable33) (pull_request) Successful in 1m35s
CI / php (dev-stable32) (pull_request) Successful in 1m33s
CI / php (dev-stable34) (pull_request) Successful in 1m35s
CI / php (dev-stable35) (pull_request) Successful in 1m33s
CI / server (32) (pull_request) Successful in 2s
CI / server (35) (pull_request) Successful in 2s
CI / javascript (pull_request) Successful in 44s
CI / standards (pull_request) Successful in 1m36s
CI / server (35) (push) Successful in 2s
CI / server (32) (push) Successful in 2s
CI / php (dev-master) (push) Successful in 1m32s
CI / javascript (push) Successful in 41s
CI / standards (push) Successful in 1m34s
CI / php (dev-stable32) (push) Successful in 1m31s
CI / php (dev-stable33) (push) Successful in 1m27s
CI / php (dev-stable34) (push) Successful in 1m27s
CI / php (dev-stable35) (push) Successful in 1m25s
0c4cb9fe8e
dawid merged commit e0625fcc42 into main 2026-11-28 22:47:04 +00:00
dawid deleted branch renovate/all-minor-patch 2026-11-28 22:47:04 +00:00
Sign in to join this conversation.
No description provided.