Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 2 months ago
JSON representation

PHPStan extension for webmozart/assert

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
```