11 Years After Release: The Story So Far
summary
Chatwork introduced the PHP static analyzer PHPStan into CI for a legacy PHP codebase that’s been running for 11 years to catch type errors and other issues tests missed. The talk explains the problem—test suites still allowed runtime type errors into production—and describes using PHPStan in continuous integration to improve code quality and stability.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:05Why PHPStan started
- 2:28What PHPStan does
- 3:53Results after adoption
- 4:16How to adopt PHPStan
- 5:38Analysis level setup
- 6:43Baseline setup
- 7:48CI integration
- 9:15Cache and performance
- 9:57Reviewing warnings
- 10:39Supporting developers
- 11:19Benefits gained
- 13:08Reduced review costs
- 14:12Custom rules and tools
- 15:13Safe library updates
- 15:55Summary
