Announcing Psalm 7

November 2, 2026 by Daniil Gentili - 10 minute read

Cross-posted from Daniil Gentili's blog ».

Announcing the release of Psalm 7!

Featuring a simply enormous number of new features and bug fixes, such as:

  • security analysis on by default: fully refactored for 10x+ performance and much greater coverage, in the same run as type checking and dead code detection;
  • much deeper security analysis taint tracking: NoSQL, LLM prompt and URL injection, new sources like php://input and uploaded file names, flows through closures, generators, traits and by-reference parameters, and ready-made stubs for Guzzle, PSR-7, Monolog, MongoDB and more.
  • a new purity model based on Hack's capabilities: declare exactly which side effects a function may have (io, time, write-props...), with purity templates for classes, closures and automatically inferred annotations;
  • graph-based dead code detection: If nothing reachable uses a class, function, method, constant, variable, etc, Psalm finds it, now properly handling unused cycles as well.
  • Template defaults (@template TError of Throwable = RuntimeException) for classes, functions and methods: Result<int> just works, and libraries can add templates without breaking their users.
  • PHP 8.5 and 8.6 support: Full support for Partial Function Application, the pipe operator, and much more!
  • Daily releases. Features and fixes reach you the day they land, no more waiting on dev-master.
  • Framework plugins in the box. The PHPUnit, Symfony, Laravel, Mockery and sabre/event plugins ship with Psalm and switch on by themselves. Zero setup.
  • a bigger Psalm maintainer team: @alies-dev has joined the Psalm maintainer team, contributing many new useful features and bugfixes!
  • An official Discord community!
  • And so, so many other new features and bugfixes!