taptima / phpstan-custom
Taptima extensions for PHPStan
Installs: 14 965
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 2
Forks: 1
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^8.1
- phpstan/phpstan: ^1.5
- phpstan/phpstan-doctrine: ^1.2
Requires (Dev)
- doctrine/collections: ^1.6
- doctrine/common: ^3.2
- doctrine/inflector: ^2.0
- doctrine/orm: 2.11.*
- ergebnis/composer-normalize: ^2.25
- friendsofphp/php-cs-fixer: ^3.8
- jakub-onderka/php-parallel-lint: ^1.0
- phing/phing: ^2.16.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.1
- phpunit/phpunit: ^9.0
Conflicts
- doctrine/collections: <1.0
- doctrine/common: <2.7
- doctrine/orm: <2.5
README
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*
.
Installation
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.
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
make test