Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/phpstan/phpstan-beberlei-assert
- Owner: phpstan
- Created: 2018-04-18T08:24:56.000Z (almost 7 years ago)
- Default Branch: 1.1.x
- Last Pushed: 2024-03-29T19:41:23.000Z (10 months ago)
- Last Synced: 2024-04-14T05:41:30.386Z (10 months ago)
- Topics: assert, php, php7, phpstan, static-analysis, static-code-analysis
- Language: PHP
- Size: 133 KB
- Stars: 36
- Watchers: 4
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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
```