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
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpstan/phpstan-beberlei-assert | 0.87 | 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. | 0 | 44 | — | 106K | — | 13.6 | 50.1 | — | — | |
| phpstan/phpstan-phpunit | 0.86 | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 531 | 534 | 56 | 3M | 35 | 38.5 | 74.2 | MIT | 3 months ago | |
| phpstan/phpstan-nette | 0.85 | PHPStan extension for Nette Framework. Improves type inference for components, DI container, forms, presenters/sessions, Html dynamic methods, SmartObject magic properties, events, and regex-based Strings utilities. Includes optional Nette-specific rules. | 118 | 119 | 44 | 281K | 6 | 33.7 | 60.3 | MIT | 6 hours ago | |
| phpstan/extension-installer | 0.85 | Composer plugin that automatically discovers and installs PHPStan extensions, eliminating manual includes in phpstan.neon. Add it as a dev dependency, allow the plugin in Composer, and extensions can declare includes via extra.phpstan for auto-setup. | 505 | 508 | 31 | 4M | 2 | 8.4 | 53.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?