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.
instanceof *Typeall* handlingType::getArrays()isEmpty and notEmptyimplementsInterface7a5f53a - Tweet release action160574e - Update release.yml0ecb23b - Add regression test for non-empty-string ImpossibleCheckTypeStaticMethodCallRule problems8e664e7 - Revert "Add support for contains, startsWith, startsWithLetter and endsWith"67f970c - Revert "Support string assertions resulting in non-empty-string"19b869e - Add support for contains, startsWith, startsWithLetter and endsWith9009135 - Support string assertions resulting in non-empty-string8015d41 - Support natural0422ea8 - Add support for interfaceExistsHow can I help you explore Laravel packages today?