NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedDevelopment & Open Source

Psalm 7 enables security analysis by default

The PHP static analyzer now combines type checking, security analysis and dead code detection in a single run.

Published: 9 Nov 2026, 11:00 UTC
A lens over a code graph with a shield and an isolated cycle of unused nodes.
Editorial illustration: type checking, security inspection and dead code detection in one analysis.

Psalm 7 has been released, with security analysis enabled by default alongside type checking and dead code detection. According to the announcement on psalm.dev, redesigned taint storage and graph processing make security analysis up to 10 times faster.

The release expands taint tracking to cover NoSQL injection, LLM prompt injection and injection into URL components. New input sources include php://input and uploaded file names. Tracking now follows data through closures, generators, traits and by-reference parameters. Bundled library stubs describe taint behavior and side effects for libraries including Guzzle, PSR-7, Monolog and MongoDB.

A new purity model based on Hack’s capabilities lets functions declare permitted side effects, such as input/output, time access and property changes. Graph-based dead code detection identifies code unreachable from entry points, including unused reference cycles. Template parameters can now have default types, allowing libraries to add templates without breaking existing users.

Psalm 7 runs on 64-bit PHP 8.2–8.6 and supports PHP 8.5’s pipe operator and PHP 8.6’s partial function application. PHPUnit, Symfony, Laravel, Mockery and sabre/event plugins ship with Psalm and activate when matching dependencies are detected. The project has also moved to daily releases.

Original source: psalm.dev ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Hacker News