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/extension-installer | 0.87 | 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. | 506 | 508 | 31 | 4M | 2 | 8.6 | 54.1 | MIT | 1 year ago | |
| 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. | 43 | 44 | 16 | 107K | 4 | 11.3 | 50.0 | MIT | 9 months ago | |
| 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. | 535 | 538 | 57 | 4M | 36 | 44.7 | 78.9 | MIT | 2 weeks 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 | 227K | 6 | 34.2 | 59.1 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?