phpstan/phpstan-beberlei-assert
PHPStan extension that adds type inference for beberlei/assert, helping static analysis understand assertion-based checks. Improves accuracy of reported types after Assert::that(), Assert::string(), Assert::notNull(), and similar calls in your code.
Architecture fit: Excellent. Designed as a PHPStan extension leveraging its plugin system to enhance static analysis without modifying core functionality. Integrates seamlessly into existing PHPStan workflows by extending type inference capabilities for beberlei/assert calls.
Integration feasibility: High. Composer-based installation (via composer require --dev phpstan/phpstan-beberlei-assert) and minimal configuration (adding extensions: - phpstan/phpstan-beberlei-assert to phpstan.neon). No code changes required in application logic.
Technical risk: Low to medium. Low risk due to focused scope and MIT license, but potential risks include:
beberlei/assert API changes could break compatibility (though common patterns are well-defined)How can I help you explore Laravel packages today?