This extension specifies types of values passed to:
Assert::integer
Assert::string
Assert::stringNotEmpty
Assert::float
Assert::numeric
Assert::integerish
Assert::boolean
Assert::scalar
Assert::object
Assert::resource
Assert::isCallable
Assert::isArray
Assert::isIterable
Assert::isCountable
Assert::isInstanceOf
Assert::notInstanceOf
Assert::subclassOf
Assert::true
Assert::false
Assert::null
Assert::notNull
Assert::same
Assert::notSame
nullOr*
andall*
variants of the above methods
To use this extension, require it in Composer:
composer require --dev phpstan/phpstan-webmozart-assert
And include extension.neon in your project's PHPStan config:
includes:
- vendor/phpstan/phpstan-webmozart-assert/extension.neon