https://github.com/taptima/phpstan-custom
Specific PHPStan extensions
https://github.com/taptima/phpstan-custom
doctrine php php7 phpstan symfony
Last synced: 6 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T07:12:11.000Z (almost 4 years ago)
- Last Synced: 2025-08-11T01:29:07.265Z (6 months ago)
- Topics: doctrine, php, php7, phpstan, symfony
- Language: PHP
- Homepage: https://taptima.ru/
- Size: 25.4 KB
- Stars: 14
- Watchers: 1
- 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
[](https://packagist.org/packages/taptima/phpstan-custom)
[](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
```