Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/phpstan/phpstan-beberlei-assert

PHPStan extension for beberlei/assert
https://github.com/phpstan/phpstan-beberlei-assert

assert php php7 phpstan static-analysis static-code-analysis

Last synced: 1 day ago
JSON representation

PHPStan extension for beberlei/assert

Awesome Lists containing this project

README

        

# PHPStan beberlei/assert extension

[![Build](https://github.com/phpstan/phpstan-beberlei-assert/workflows/Build/badge.svg)](https://github.com/phpstan/phpstan-beberlei-assert/actions)
[![Latest Stable Version](https://poser.pugx.org/phpstan/phpstan-beberlei-assert/v/stable)](https://packagist.org/packages/phpstan/phpstan-beberlei-assert)
[![License](https://poser.pugx.org/phpstan/phpstan-beberlei-assert/license)](https://packagist.org/packages/phpstan/phpstan-beberlei-assert)

* [PHPStan](https://phpstan.org/)
* [beberlei/assert](https://github.com/beberlei/assert)

## Description

The main scope of this extension is to help PHPStan to detect the type of object after the `Assert\Assertion` 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-beberlei-assert/extension.neon
```