Psalm (@psalmphp) header
Psalm (@psalmphp) profile picture

Psalm is a type-checking static analysis tool for PHP that finds bugs humans can miss, and improves code quality. Try it at https://www.nitter.cf/t.co/eBajkMPMkn

CI builds
Joined December 2018
Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)
Pinned Tweet
🔥 Psalm 7.0.0 is here! The biggest Psalm release in years: powerful PHP security analysis in every run, a Hack-inspired purity model, graph-based dead code detection, full PHP 8.6 support and major framework plugins in the box. 🧵 github.com/vimeo/psalm/relea… #PHP #Psalm
1
9
1
10
783
Great find. The trick is plain Eloquent: a relation name runs as a method, so request input in with() can call truncate(). Laravel fixed its resource. Your own ?include handling needs an allowlist, so I taught Psalm to check it. Psalm + psalm-plugin-laravel 🛡️ (fresh versions)
This was one of the craziest Laravel bugs I reported (CVE-2026-114508). A read-only GET request could wipe an entire database table 🚨 With Laravel's JSON:API resources, changing ?include=comments to ?include=comments.truncate passed "truncate" straight to Eloquent without checking the child resource. Even though the request returned HTTP 500, Laravel had already run TRUNCATE TABLE comments. Patched in Laravel 12.68.0 & 13.27.0 (PR #61322). More info 👇
1
2
1
304