spryker-sdk / phpstan-spryker
Spryker PHPStan Extensions
Installs: 2 167 932
Dependents: 431
Suggesters: 0
Security: 0
Stars: 4
Watchers: 10
Forks: 3
Open Issues: 3
Requires
- php: >=8.2
- phpstan/phpstan: ^1.0.0
- phpunit/phpunit: ^11.4.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.1.1
- jakub-onderka/php-parallel-lint: ^1.0
- phing/phing: ^2.16.0
- phpstan/phpstan-strict-rules: ^1.0.0
- spryker/code-sniffer: *
- squizlabs/php_codesniffer: ^3.6.0
README
This extension provides following features:
- Notifies you when you try to use
getConfig()
,getClient()
,getFacade()
,getFactory()
,getSharedConfig()
,getQueryContainer()
methods without specifying theirs types in a class's DocBlock.
Usage
How to use in Spryker projects
To use this extension, require it in Composer. Make sure you include the repo as require-dev
dependency:
composer require --dev spryker-sdk/phpstan-spryker
You can use phpstan/extension-installer to automatically load the configuration:
composer require --dev phpstan/extension-installer
Or include the extension.neon
manually in your project's PHPStan config:
includes:
- vendor/spryker-sdk/phpstan-spryker/extension.neon