phpstan/phpstan-webmozart-assert
PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy.
|
Package
|
Constraint
|
|---|---|
| phpstan/phpstan | ^2.1.41 |
|
Package
|
Constraint
|
|---|---|
| nikic/php-parser | ^5.1 |
| php-parallel-lint/php-parallel-lint | ^1.2 |
| phpstan/phpstan-deprecation-rules | ^2.0 |
| phpstan/phpstan-phpunit | ^2.0.10 |
| phpstan/phpstan-strict-rules | ^2.0 |
| phpunit/phpunit | ^9.6 |
| webmozart/assert | ^1.11.0 || ^2.0 |
How can I help you explore Laravel packages today?