phpstan/phpstan-webmozart-assert

PHPStan webmozart/assert extension

Installs: 98 402

Dependents: 111

Suggesters: 0

Stars: 30

Watchers: 3

Forks: 4

Open Issues: 2

Type:phpstan-extension

0.11.2 2019-05-12 16:54 UTC

README

Build Status Latest Stable Version License

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* and all* variants of the above methods

Usage

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