shopwarelabs/phpstan-shopware

PhpStan Rules for Shopware

dev-main 2024-10-08 08:46 UTC

This package is auto-updated.

Last update: 2024-11-08 08:57:30 UTC


README

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.