Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.61 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.61 KB

PHPStan Rules for Shopware 6

Latest Version on Packagist Total Downloads License

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.