shopwarelabs / phpstan-shopware
PhpStan Rules for Shopware
dev-main
2024-10-08 08:46 UTC
Requires
- php: ^8.2
- phpstan/phpstan: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: v3.64.0
- phpstan/extension-installer: *
- phpunit/phpunit: ~11.3.6
- shopware/core: ^6.6
This package is auto-updated.
Last update: 2024-10-08 08:46:16 UTC
README
This package provides additional PHPStan rules for Shopware 6 projects. It helps developers catch common mistakes and enforce best practices specific to Shopware development.
Installation
You can install the package via composer:
composer require --dev shopwarelabs/phpstan-shopware
Usage
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
Features
- Custom rules for Shopware 6.5 specific patterns
- Improved type inference for Shopware core classes
- Additional checks for common Shopware development pitfalls
Configuration
You can customize the behavior of these rules by adding configuration to your phpstan.neon
file. See the configuration section for more details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.