#PHP Dead Code Detector ①.①.⓪ released
Newly supports:
○ Symfony Forms
○ Laravel Blade templates
○ Property reads via (array), json_encode, serialize, ...
And bunch of smaller improvements.
https://t.co/S62Cw4Ayn3
📢 After 4 years of development, Dead Code Detector is stable
● Newly features: Laravel!
● Can find dead methods, props, consts and enums
● Supports Symfony, Twig, Doctrine, PHPUnit
● Understands transitivity (even hooks)
● Can remove dead code
Install as any @PHPStan ext
💥Big release of Dead Code Detector via @phpstan:
🏷️Dead properties:
Both never-written & never-read detected!
Property hooks part of transitivity chain!
☘️Twig support!
Parameters passed to templates are used!
https://t.co/bN6nxeoY8j
📟Claude Code usage increase in @ShipMonkDevs in 2026...
I think it just reached some point of wide usability - with great results for almost any task. People started to trust it and truely use it.
shipmonk/dead-code-detector: Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested. https://t.co/gFce3OvnaP
@PHPStan baseline is great, but you dont see it when reading the legacy code.
What if you could *inline the baseline*?
You can: https://t.co/IlcOtLtmRG
Such a HUGE milestone for Dead Code Detector:
🎉 Successfully integrated in @phpstan-src itself!
✅ Not a single false-positive in such complex codebase!
This is mutually benefitial as both repos also have E2E tests checking the other one!
https://t.co/7UNs7LU3Vd
Wanna mitigate Memory Leaks or Dead Code in your #PHP project?
Attend ShipMonk meetup in Prague on Wednesday, 14th May 2025.
Register here: https://t.co/UC7tynkkcJ
Talks in 🇨🇿