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
ArrayCollection
entity 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-master
Then include extension.neon in your project's PHPStan config:
includes:
- vendor/taptima/phpstan-custom/extension.neon
and
includes:
- vendor/taptima/phpstan-custom/rules.neon
This 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