Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Beberlei Assert Laravel Package

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.

Deep Wiki
Context7

Technical Evaluation

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:

  • Limited community testing (43 stars) may hide edge-case bugs
  • Future beberlei/assert API changes could break compatibility (though common patterns are well-defined)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4