Taptima customs extensions for PHPStan
This extension provides following features:
- Validates common entity properties existence of methods
set*,get*. - Validates boolean entity properties existence of methods
set*,is*orhas*. - Validates
ArrayCollectionentity properties existence of methodsadd*,remove*andget*.
Open a command console, enter your project directory and execute the following command to download the latest stable version of this extension:
composer require --dev taptima/phpstan-custom dev-masterThen include extension.neon in your project's PHPStan config:
includes:
- vendor/taptima/phpstan-custom/extension.neonand
includes:
- vendor/taptima/phpstan-custom/rules.neonThis extensions depends on phpstan-doctrine, so you have to configure it.
Before to create a pull request to submit your contributon, you must:
- run tests and be sure nothing is broken
make test