Psalm 7 release: PHP security&static analysis software
danogentili
81 points
49 comments
November 07, 2026
Related Discussions
Found 5 related stories in 38.4ms across 3,874 title embeddings via pgvector HNSW
- Upcoming Critical PHP Security Release hypnot · 33 pts · November 18, 2026 · 56% similar
- PHP2Shell: Exploitation attempts and remediation trends acossta · 185 pts · October 27, 2026 · 47% similar
- PHP2Shell, LiteLLM, GitLab: Find What You Need to Patch bigfish2026 · 57 pts · October 27, 2026 · 46% similar
- PHP advisory: mixed-case HTTPS and FTPS URLs can expose data in plaintext nreece · 13 pts · November 20, 2026 · 46% similar
- PHP 8.5.13 petecooper · 62 pts · November 19, 2026 · 44% similar
Discussion Highlights (5 comments)
origini
Ah boy o boy, PHP was the first lanuage I teached myself but man it still needs PHPDoc comment on return types? Come on PHP has so many shitty things, but even something basic like this is still not in the lanuage itself?
anthk
Thou shall use the Rust rewrite of PHP.
idoubtit
For anyone not familiar with PHP, static analysis is pretty much required because the official PHP type system is minimal. The detailed types are added through phpdoc comments, and they also help IDEs to provide a sane completion. For instance, the plain "array" should be detailed with phpdoc: /** * @param array<string, MyRecord> $input * @return list<int> */ function foo(array $input): array { foreach ($input as $string => $record) { // IDE knows $record is an instance of MyRecord The static analysis will use both type systems, and it's the only way to check that phpdoc are consistent. Psalm has various levels of strictness, and even at a very lax level, it can help detect errors or code smells. There are two major static analysis tools for PHP, Psalm and PHPstan, both written in PHP. The latter used to be much slower, but last time I tried it there was little difference (about 20 s for 100k lines + dependencies). My guess is that a new contender, Mago, written in Rust, will probably soon replace those other tools. Its commands (analyze, lint) are already almost as complete as psalm/phpstan. Though the migration won't be easy because it does not have a notion of levels.
tosti
> An official Discord community! That's a regression.
littlecorner
A shiggaion of David