This package provides additional PHPStan rules for Shopware 6 projects. It helps developers catch common mistakes and enforce best practices specific to Shopware development.
You can install the package via composer:
composer require --dev shopwarelabs/phpstan-shopware
To use these rules, include the package's configuration file in your PHPStan configuration:
includes:
- vendor/shopwarelabs/phpstan-shopware/rules.neon
or you use PHPStan Extension Installer
- Custom rules for Shopware 6.5 specific patterns
- Improved type inference for Shopware core classes
- Additional checks for common Shopware development pitfalls
You can customize the behavior of these rules by adding configuration to your phpstan.neon
file. See the configuration section for more details.
Contributions are welcome! Please see CONTRIBUTING.md for details.
The MIT License (MIT). Please see License File for more information.