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 10 hours 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 (almost 7 years ago)
- Default Branch: 2.0.x
- Last Pushed: 2025-01-28T09:27:42.000Z (10 days ago)
- Last Synced: 2025-01-31T06:28:10.885Z (7 days ago)
- Topics: assert, php, php7, phpstan, static-analysis, static-code-analysis
- Language: PHP
- Size: 232 KB
- Stars: 167
- Watchers: 7
- Forks: 28
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```