psalm breaking changes
psalm 7.0.0 is its newest release with breaking changes, 29 of them. The first: psalm 7.0.0 requires PHP 8.1.17 or later. Every breaking API change we have recorded in psalm on Homebrew: 37 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.27.0, released December 4, 2026. MIT license. Source repository
Its 7.0.0 release requires PHP 8.1.17 or later. PHP end of life dates.
- From 7.0.0-beta5 to 7.0.0: 36 breaking changes in 6 versions.
psalm 7.0.0 breaking changes
- Removed
Psalm 6 raised the minimum PHP version to 8.1.17. github.com - Removed
@psalm-purity-from
Declare a purity template and use @psalm-purity-from-template instead of @psalm-purity-from. github.com - Removed
psalm.plugin-sabre-event
Projects requiring sabre/event no longer get the plugin; add it to dev dependencies or remove it from the config. github.com - Removed
Psalm\Context.$pure
The pure property was replaced with an isPure method. github.com - Removed
Psalm\Internal\DataFlow\DataFlowNode.make
Use one of the getFor* factory methods instead of make. github.com - Removed
Psalm\Progress\Progress.start
The start method was removed. Use expand instead. github.com - Removed
Psalm\Type\Atomic\TCallable.$is_pure
The is_pure property was replaced with allowed_mutations. github.com - Removed
Psalm\Type\Atomic\TCallableInterface
TCallableInterface was deleted. Use Atomic::isCallableType instead. github.com - Removed
Psalm\Type\Atomic\TCallableKeyedArray
TCallableKeyedArray was deleted and replaced by an is_callable flag on TKeyedArray. github.com - Removed
Psalm\Type\Atomic\TKeyedArray.NAME_ARRAY
The NAME_ARRAY constant was removed from TKeyedArray. github.com - Removed
Psalm\Type\Atomic\TKeyedArray.NAME_LIST
The NAME_LIST constant was removed from TKeyedArray. github.com - Removed
self-accessing-callable
The self-accessing and self-mutating callable and Closure types were removed. Use Closure with explicit capability sets instead. github.com - Removed
TPositiveInt
TPositiveInt was removed and replaced by TIntRange. github.com - Renamed
Config.$shepherd_host
The shepherd_host property was replaced by shepherd_endpoint. github.com - Renamed
Psalm\Type\Atomic\TNamedObject.$was_static
The property was renamed to is_static. github.com - Renamed
Psalm\Type\Union.isFormerStaticObject
The method was renamed to isStaticObject. github.com - Behavior changed
Purity template arguments must be written in square brackets; angle brackets now report InvalidDocblock. github.com - Behavior changed
Psalm\Config.loadFromXMLFile
Unreadable or empty config files now throw ConfigException instead of InvalidArgumentException. Catch the new exception type if you handle it. github.com - Behavior changed
Psalm\Plugin\EventHandler\Event\AfterAnalysisEvent.getBuildInfo
getBuildInfo holds the keys of only the first recognised CI service and omits unknown values instead of null. Read keys with ??. github.com - Behavior changed
Psalm\Type\Atomic.getId
A type extending Atomic directly must override getId, or it throws a LogicException. github.com - Behavior changed
Psalm\Type\Union.isBool
isBool returns true when every member is a TBool, so true and false alone now count as bool. Psalm also reports RedundantCast for casts of true or false. github.com - Default changed
Config.$find_unused_code
Unused code detection is on by default now; disable it explicitly if you do not want it. github.com - Default changed
MissingPureAnnotation
These suggestions are only reported with the suggestPurityAnnotations config attribute enabled, so baselines may need updating. github.com - Signature changed
Psalm\Codebase.addTaintSource
The code location parameter is now mandatory and comes before the taints parameter. github.com - Signature changed
Psalm\Codebase.classExists
The calling class name and method id parameters were replaced by a single Psalm\Context|null parameter. github.com - Signature changed
Psalm\Codebase.methodExists
The signature of Codebase::methodExists changed, so callers passing the old arguments must be updated. github.com - Signature changed
Psalm\Plugin\EventHandler\AddTaintsInterface.addTaints
Plugins must return an integer taint instead of an array of strings from addTaints and removeTaints. github.com - Signature changed
Psalm\Type.getListAtomic
getListAtomic can now return TArray as well as TKeyedArray, so code expecting TKeyedArray must check the type. github.com - Signature changed
Psalm\Type\Atomic\TKeyedArray.__construct
Create TKeyedArray with the make or makeCallable factory methods instead of the constructor. github.com
psalm 7.0.0-rc11 breaking changes
- Behavior changed
Cached union equality and resolution changes in psalm 7.0.0-rc11 github.com
psalm 7.0.0-rc9 breaking changes
- Behavior changed
@psalm-taint-sink
Taint sink annotations can now be conditional, which may change which code is reported. github.com
psalm 7.0.0-rc2 breaking changes
- Behavior changed
$_SERVER
Psalm now taints the entries of $_SERVER and $_FILES that the client sends, so code that passes them to sinks may newly report taint issues. github.com - Behavior changed
debug_backtrace
Calls to debug_backtrace() are now treated as reading globals, which may newly change purity reports. github.com - Behavior changed
printf
These functions now act as sinks of the same taint kinds as echo, so code passing tainted data to them may newly report issues. github.com
psalm 7.0.0-beta20 breaking changes
- Behavior changed
dead-code detection
Dead-code detection runs on a reference graph, so unreferenced cycles and code used only by unused code are now reported. Review new UnusedClass or UnusedMethod findings. github.com
psalm 7.0.0-beta7 breaking changes
- Behavior changed
DateTimeImmutable.setTimestamp
The parameter name of setTimestamp changed, so code passing it by named argument must be updated. github.com
Older versions
1 older version.
Show 1 older version
psalm 7.0.0-beta5 breaking changes
- Behavior changed
Psalm can now run normal, security and dead code analysis in a single run. Users who relied on separate runs should check their CI setup. github.com
Related packages
- vimeo/psalm on Packagist
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.