phpstan/phpstan-beberlei-assert
PHPStan extension for beberlei/assert. Adds improved static analysis and type inference for Assert::that and related assertions, helping PHPStan understand refined types after checks and reducing false positives in codebases using beberlei/assert.
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?