Introducing CTOR: Prefer Constructor over Always-Called Setters
Tomas Votruba introduces CTOR, a PHPStan extension that detects setter methods always called after object instantiation and suggests moving them into the constructor instead. The tool helps Laravel developers prevent half-valid objects by enforcing proper dependency injection through constructors rather than relying on mandatory setter chains.