{"repo":"phpstan/phpstan-webmozart-assert","free":true,"listed":false,"github":"https://github.com/phpstan/phpstan-webmozart-assert","clone":"git clone https://github.com/phpstan/phpstan-webmozart-assert.git","description":"PHPStan extension for webmozart/assert","language":"PHP","stars":185,"topics":["phpstan","static-code-analysis","static-analysis","php","php7","assert"],"license":"MIT","category":"dev-tools","readme_excerpt":"PHPStan webmozart/assert extension PHPStan webmozart/assert Description The main scope of this extension is to help PHPStan to detect the type of object after the Webmozart\\Assert\\Assert validation. Supported assertions This extension understands the following Assert:: methods and narrows types accordingly. All assertions also work with the nullOr () , all () , and allNullOr () prefixes (e.g. Assert::nullOrString() , Assert::allInteger() , Assert::allNullOrNotEmpty() ). Type checks integer , positiveInteger , natural , float , numeric , integerish , boolean , scalar , string , stringNotEmpty , object , resource , isCallable , isArray , isIterable , isTraversable , isList , isNonEmptyList , isMap , isNonEmptyMap , isCountable , isArrayAccessible Instance and class checks isInstanceOf , isInstanceOfAny , notInstanceOf , isAOf , isAnyOf , isNotA , subclassOf , implementsInterface , classExists , interfaceExists Comparison same , notSame , eq , notEq , greaterThan , greaterThanEq , lessThan , lessThanEq , range , true , false , null , notNull , notFalse , inArray , oneOf String assertions contains , startsWith , endsWith , startsWithLetter , unicodeLetters , alpha , digits , alnum , lower , upper , uuid , ip , ipv4 , ipv6 , email , notWhitespaceOnly , length , minLength , maxLength , lengthBetween Count assertions count , minCount , maxCount , countBetween Object and array keyExists , keyNotExists , validArrayKey , methodExists , propertyExists Negative all assertions allNotNull ","default_branch":null,"files":null,"tree":[],"storefront":"/r/phpstan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phpstan/phpstan-webmozart-assert/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}