vimeo/psalm breaking changes
Updated December 4, 2026
On this page
Latest version 7.28.0, released December 5, 2026. MIT license. Source repository
Its 6.0.0 release requires PHP 8.1.17 or later. PHP end of life dates.
- From 6.0.0 to 7.0.0: 137 breaking changes in 19 versions.
- From 0.2.0 to 7.0.0: 2,716 breaking changes in 25 versions.
vimeo/psalm 7.0.0 breaking changes
- Removed
Install psalm/plugin-sabre-event if your config lists Psalm\SabreEventPlugin\Plugin, or remove that entry. github.com - Removed
@psalm-purity-from
Declare a purity template and use @psalm-purity-from-template instead of @psalm-purity-from $param. github.com - Removed
Psalm\Context::$external_mutation_free
Psalm\Context::$external_mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Context::$mutation_free
Psalm\Context::$mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Context::$pure
Call the isPure() method instead of reading the removed $pure property. packagist.org - Removed
Psalm\Plugin\DynamicFunctionStorage::$pure
Psalm\Plugin\DynamicFunctionStorage::$pure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Progress\Progress::start
Use expand instead of start on Psalm\Progress\Progress. packagist.org - Removed
Psalm\Progress\Progress::startAlteringFiles
Psalm\Progress\Progress::startAlteringFiles was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Progress\Progress::startAnalyzingFiles
Psalm\Progress\Progress::startAnalyzingFiles was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Progress\Progress::startScanningFiles
Call startPhase with a Psalm\Progress\Phase case instead of the removed start methods. packagist.org - Removed
Psalm\SabreEventPlugin\Plugin
A config listing the plugin needs psalm/plugin-sabre-event installed, or the entry must be removed. github.com - Removed
Psalm\Storage\ClassLikeStorage::$external_mutation_free
Psalm\Storage\ClassLikeStorage::$external_mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\ClassLikeStorage::$mutation_free
Psalm\Storage\ClassLikeStorage::$mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\EnumCaseStorage::$deprecated
Psalm\Storage\EnumCaseStorage::$deprecated was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\FunctionLikeStorage::$mutation_free
Psalm\Storage\FunctionLikeStorage::$mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\FunctionLikeStorage::$pure
Psalm\Storage\FunctionLikeStorage::$pure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\MethodStorage::$external_mutation_free
Psalm\Storage\MethodStorage::$external_mutation_free was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\MethodStorage::$immutable
Psalm\Storage\MethodStorage::$immutable was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Storage\MethodStorage::$mutation_free_inferred
Psalm\Storage\MethodStorage::$mutation_free_inferred was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\CallableTrait::__construct
Psalm\Type\Atomic\CallableTrait::__construct was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\CallableTrait::$is_pure
Psalm\Type\Atomic\CallableTrait::$is_pure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\CallableTrait::setIsPure
Psalm\Type\Atomic\CallableTrait::setIsPure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TCallable::$is_pure
Use the new $allowed_mutations property instead of $is_pure on callable atomic types. packagist.org - Removed
Psalm\Type\Atomic\TCallable::setIsPure
Psalm\Type\Atomic\TCallable::setIsPure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TCallableInterface
Use Psalm\Type\Atomic::isCallableType() to check for callable types. packagist.org - Removed
Psalm\Type\Atomic\TCallableKeyedArray
Use the is_callable flag on Psalm\Type\Atomic\TKeyedArray instead. packagist.org - Removed
Psalm\Type\Atomic\TClosure::$is_pure
Psalm\Type\Atomic\TClosure::$is_pure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TClosure::setIsPure
Psalm\Type\Atomic\TClosure::setIsPure was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TKeyedArray::$fallback_params
Psalm\Type\Atomic\TKeyedArray::$fallback_params was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TKeyedArray::$is_list
Psalm\Type\Atomic\TKeyedArray::$is_list was removed in vimeo/psalm 7.0.0 packagist.org - Removed
Psalm\Type\Atomic\TKeyedArray::NAME_ARRAY
The NAME_ARRAY constant no longer exists on TKeyedArray. packagist.org - Removed
Psalm\Type\Atomic\TKeyedArray::NAME_LIST
The NAME_LIST constant no longer exists on TKeyedArray. packagist.org - Removed
Psalm\Type\TaintKindGroup
Psalm\Type\TaintKindGroup was removed in vimeo/psalm 7.0.0 packagist.org - Removed
self-accessing-callable
Use Closure[read-props](...) or Closure[read-props|write-this-props|write-refs](...) (or another capability set) instead. github.com - Behavior changed
Taints are stored as a bitmap, so the number of usable taint types is capped at 32 on 32-bit and 64 on 64-bit systems. github.com - Behavior changed
Write capabilities out explicitly, such as read-props|write-this-props, since write-this-props and write-props no longer imply read-props. github.com - Behavior changed
Each capability name, such as write-this-props or write-globals, no longer includes the capabilities it used to imply. Write the full set out. github.com - Behavior changed
Overrides that need more capabilities than the overridden method are now reported at every level. github.com - Behavior changed
Write purity arguments in square brackets before type arguments; angle-bracket purity arguments are now an InvalidDocblock error. github.com - Behavior changed
Many constructs such as clone, string casts, interpolation, throw new and call_user_func are now checked for purity, so code using them in pure contexts may report new errors. github.com - Behavior changed
Functions that unset objects or discard new expressions now need the destructor's capabilities. github.com - Behavior changed
@psalm-external-mutation-free
Reading or writing static properties and static variables is no longer allowed; use @psalm-capabilities write-globals or read-globals. github.com - Behavior changed
@psalm-purity-from
Declare a purity template and use @psalm-purity-from-template instead of @psalm-purity-from with a parameter. github.com - Behavior changed
ArrayAccess
A plain isset on an ArrayAccess object now calls only offsetExists, while the null coalescing operator still calls offsetGet afterwards. github.com - Behavior changed
ArrayObject
A class extending ArrayObject or ArrayIterator must declare @psalm-capabilities read-props|write-this-props or fewer, or Psalm reports ImmutableDependency. github.com - Behavior changed
MissingPureAnnotation
These suggestions are only reported when suggestPurityAnnotations is enabled, so baselines and suppressions may need updating. github.com - Behavior changed
Psalm\Config.loadFromXMLFile
Code catching InvalidArgumentException from loadFromXMLFile must catch Psalm\Exception\ConfigException instead. github.com - Behavior changed
Psalm\Plugin\EventHandler\Event\AfterAnalysisEvent.getBuildInfo
Only the first recognised CI service's keys are returned, and unknown values are omitted instead of null or empty. github.com - Behavior changed
Psalm\SabreEventPlugin\Plugin
Projects using sabre/event must install psalm/plugin-sabre-event and list it in config, or remove the entry. github.com - Behavior changed
Psalm\Storage\ClassLikeStorage.$template_type_extends_count
The keys are the lowercase name of the parent class, interface or trait instead of the name as written in the tag. github.com
And 54 more in this version. Sign up to see every change
vimeo/psalm 7.0.0-rc14 breaking changes
- Behavior changed
tmpfile
Code relying on tmpfile() being pure may now get purity errors. github.com
vimeo/psalm 7.0.0-rc9 breaking changes
- Behavior changed
Psalm now loads its shipped stubs for libraries whenever the scanned code uses one of their classes, which can add new issues to existing code. Review new reports after upgrading. github.com
vimeo/psalm 7.0.0-rc7 breaking changes
- Behavior changed
json_encode
Taint analysis no longer treats the output of json_encode() called with JSON_HEX_TAG and JSON_HEX_AMP as an HTML taint, so code relying on the old html taint may see different reports. github.com
vimeo/psalm 7.0.0-rc3 breaking changes
- Renamed
Capabilities.allows
The Capabilities::allows method was renamed to Capabilities::allowsAnyOf. Code calling the old name must switch to the new one. github.com - Behavior changed
Invalid taint and flow annotations, including those in stubs, are now reported, so code that passed before may show new errors. github.com - Behavior changed
--threads
When --scan-threads is not given, --threads also sets the number of threads used for the scan phase. Users who relied on the scan phase running with a different thread count should pass --scan-threads explicitly. github.com
vimeo/psalm 7.0.0-rc2 breaking changes
- Behavior changed
The terminal report is now written to STDOUT rather than echoed, which can change output handling for scripts that capture Psalm's output. github.com - Behavior changed
The terminal report now goes to STDOUT through a write rather than an echo. Scripts that capture or redirect Psalm's output should check that they still receive the report. github.com - Behavior changed
debug_backtrace
Psalm now requires read-globals for calls to debug_backtrace(), which can add new purity-related issues to code that calls it. github.com
Older versions
20 older versions, each with its first changes. Sign up to see every change
Show 20 older versions
vimeo/psalm 7.0.0-beta23 breaking changes
- Behavior changed
Psalm now emits issues on PHP versions below 8.5 when an overridden method uses self instead of static, which can add new issues to existing runs. github.com - Behavior changed
Psalm now suppresses some CLI output when it detects it is running under an AI agent. Scripts that parse Psalm's console output in that setting may need to change. github.com
And 5 more in this version.
vimeo/psalm 7.0.0-beta20 breaking changes
- Behavior changed
Unused code is detected via a reference graph, so code used only by other unused code, including cycles, is now reported. github.com - Behavior changed
Unused-code detection now reports code referenced only by other unused code, so previously silent code may now be flagged. github.com
vimeo/psalm 7.0.0-beta19 breaking changes
- Behavior changed
Void and never parameter problems are reported under a different issue type, which may affect suppressions and CI filters. github.com
vimeo/psalm 7.0.0-beta18 breaking changes
- Renamed
compact
Use the table output format name instead of compact; a new truly compact format now uses the compact name. github.com
vimeo/psalm 7.0.0-beta17 breaking changes
- Default changed
JIT is now opt-in; users who relied on it by default must pass --force-jit. github.com
vimeo/psalm 7.0.0-beta15 breaking changes
- Behavior changed
Psalm now always reports MissingPureAnnotation and MissingImmutableAnnotation issues for functions, methods and classes, so existing runs may report new issues. github.com - Behavior changed
Psalm now always reports MissingPureAnnotation and MissingImmutableAnnotation for functions, methods and classes that can be annotated. github.com
vimeo/psalm 7.0.0-beta14 breaking changes
- Default changed
Taint analysis is now always run by default rather than being optional. github.com
vimeo/psalm 7.0.0-beta13 breaking changes
- Behavior changed
Null array offsets are no longer ignored within isset checks, which can change analysis results. github.com - Behavior changed
isset
Null array offsets inside isset are now analysed rather than ignored, which can surface new issues in existing code. github.com
vimeo/psalm 7.0.0-beta11 breaking changes
- Behavior changed
iterator_to_array
Full iterable support for iterator_to_array in vimeo/psalm 7.0.0-beta11 github.com
vimeo/psalm 7.0.0-beta7 breaking changes
- Signature changed
DateTimeImmutable.setTimestamp
Code that passes this argument by name must use the new parameter name. github.com
vimeo/psalm 7.0.0-beta6 breaking changes
- Behavior changed
Psalm runs taint analysis on every run without opting in, so existing projects may see new security issues reported. github.com - Default changed
Taint analysis now runs by default in each analysis run without opting in. github.com
vimeo/psalm 7.0.0-beta5 breaking changes
- Behavior changed
Normal, security and dead code analysis can now run in one pass; future betas will enable taint analysis by default. github.com
vimeo/psalm 7.0.0-beta1 breaking changes
- Behavior changed
Psalm 7 contains breaking changes compared with v6. Read the upgrading guide for the full list and check your code and configuration against it. github.com - Behavior changed
Psalm 7 has breaking changes listed in UPGRADING.md that users must review before upgrading. github.com
vimeo/psalm 6.0.0 breaking changes
- Removed
The package no longer supports PHP versions below 8.1.17. Upgrade PHP before using Psalm 6. github.com - Removed
Psalm\Aliases::$constants
Psalm\Aliases::$constants was removed in vimeo/psalm 6.0.0 packagist.org
And 873 more in this version.
vimeo/psalm 5.0.0 breaking changes
- Removed
Legacy procedural files were dropped from the package. github.com - Removed
Plugins relying on the legacy plugin API no longer work and must be ported. github.com
And 1,095 more in this version.
vimeo/psalm 5.0.0-rc1 breaking changes
- Removed
Legacy procedural files were removed from the package. github.com - Removed
Previously deprecated configuration entries were removed. Remove them from your config. github.com
And 17 more in this version.
vimeo/psalm 5.0.0-beta1 breaking changes
- Removed
@psalm-generator-return
The @psalm-generator-return annotation was removed. github.com - Removed
totallyTyped
The totallyTyped option was removed after being deprecated. github.com
And 2 more in this version.
vimeo/psalm 5.0.0-alpha1 breaking changes
- Removed
Config entries that were already removed are no longer accepted. github.com - Removed
Legacy procedural files were dropped from the package. github.com
And 10 more in this version.
vimeo/psalm 0.3.0 breaking changes
- Removed
array_combine
array_combine was removed in vimeo/psalm 0.3.0 packagist.org - Removed
array_diff
array_diff was removed in vimeo/psalm 0.3.0 packagist.org
And 570 more in this version.
vimeo/psalm 0.2.0 breaking changes
- Removed
Psalm\Checker\FileChecker::$real_file_name
Psalm\Checker\FileChecker::$real_file_name was removed in vimeo/psalm 0.2.0 packagist.org - Removed
Psalm\Checker\FileChecker::getRealFileName
Psalm\Checker\FileChecker::getRealFileName was removed in vimeo/psalm 0.2.0 packagist.org
And 27 more in this version.
Related packages
- psalm on Homebrew
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.