Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
PHPStan extension for webmozart/assert
- Host: GitHub
- URL: https://github.com/phpstan/phpstan-webmozart-assert
- Owner: phpstan
- Created: 2018-04-15T19:51:51.000Z (over 6 years ago)
- Default Branch: 1.2.x
- Last Pushed: 2024-04-06T17:36:18.000Z (7 months ago)
- Last Synced: 2024-04-14T05:41:31.289Z (7 months ago)
- Topics: assert, php, php7, phpstan, static-analysis, static-code-analysis
- Language: PHP
- Size: 222 KB
- Stars: 153
- Watchers: 7
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPStan webmozart/assert extension
[![Build](https://github.com/phpstan/phpstan-webmozart-assert/workflows/Build/badge.svg)](https://github.com/phpstan/phpstan-webmozart-assert/actions)
[![Latest Stable Version](https://poser.pugx.org/phpstan/phpstan-webmozart-assert/v/stable)](https://packagist.org/packages/phpstan/phpstan-webmozart-assert)
[![License](https://poser.pugx.org/phpstan/phpstan-webmozart-assert/license)](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
```