Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taptima/phpstan-custom
Specific PHPStan extensions
https://github.com/taptima/phpstan-custom
doctrine php php7 phpstan symfony
Last synced: 2 months ago
JSON representation
Specific PHPStan extensions
- Host: GitHub
- URL: https://github.com/taptima/phpstan-custom
- Owner: taptima
- License: mit
- Created: 2020-03-30T03:41:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T07:12:11.000Z (over 2 years ago)
- Last Synced: 2024-09-30T13:01:21.679Z (3 months ago)
- Topics: doctrine, php, php7, phpstan, symfony
- Language: PHP
- Homepage: https://taptima.ru/
- Size: 25.4 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Taptima](https://taptima.ru/) customs extensions for PHPStan
[![Latest Stable Version](https://poser.pugx.org/taptima/phpstan-custom/v/stable)](https://packagist.org/packages/taptima/phpstan-custom)
[![License](https://poser.pugx.org/taptima/phpstan-custom/license)](https://packagist.org/packages/taptima/phpstan-custom)* [PHPStan](https://phpstan.org/)
This extension provides following features:
* Validates common entity properties existence of methods `set*`, `get*`.
* Validates boolean entity properties existence of methods `set*`, `is*` or `has*`.
* Validates `ArrayCollection` entity properties existence of methods `add*`, `remove*` and `get*`.## Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this extension:
```bash
composer require --dev taptima/phpstan-custom dev-master
```Then include extension.neon in your project's PHPStan config:
```neon
includes:
- vendor/taptima/phpstan-custom/extension.neon
```and
```neon
includes:
- vendor/taptima/phpstan-custom/rules.neon
```This extensions depends on [phpstan-doctrine](https://github.com/phpstan/phpstan-doctrine), so you have to configure it.
## Contribution
Before to create a pull request to submit your contributon, you must:
- run tests and be sure nothing is broken### How to run tests
```bash
make test
```