https://github.com/phpstan/phpstan-webmozart-assert
PHPStan extension for webmozart/assert
https://github.com/phpstan/phpstan-webmozart-assert
assert php php7 phpstan static-analysis static-code-analysis
Last synced: 5 months ago
JSON representation
PHPStan extension for webmozart/assert
- Host: GitHub
- URL: https://github.com/phpstan/phpstan-webmozart-assert
- Owner: phpstan
- License: mit
- Created: 2018-04-15T19:51:51.000Z (over 7 years ago)
- Default Branch: 2.0.x
- Last Pushed: 2025-04-15T15:31:41.000Z (6 months ago)
- Last Synced: 2025-04-23T19:27:02.503Z (6 months ago)
- Topics: assert, php, php7, phpstan, static-analysis, static-code-analysis
- Language: PHP
- Size: 237 KB
- Stars: 169
- Watchers: 6
- Forks: 27
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPStan webmozart/assert extension
[](https://github.com/phpstan/phpstan-webmozart-assert/actions)
[](https://packagist.org/packages/phpstan/phpstan-webmozart-assert)
[](https://packagist.org/packages/phpstan/phpstan-webmozart-assert)
* [PHPStan](https://phpstan.org/)
* [webmozart/assert](https://github.com/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.
```php
Manual installation
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
```
includes:
- vendor/phpstan/phpstan-webmozart-assert/extension.neon
```