grano22/code_quality_pack

Code quality toolset to help better maintain your code

dev-master 2025-03-29 08:28 UTC

This package is auto-updated.

Last update: 2025-03-29 08:29:45 UTC


README

This package contains useful rules to support best practises in your codebase.

Actual roles in the package:

  • Grano22\CodeQualityPack\ReasonRequiredInDeprecationRule - Checks if any deprecated annotation has no reason.

Installation

You can install the package via composer:

composer require --dev grano22/code_quality_pack

Usage

📂 phpstan.dist.neon

services:
    -
        class: Grano22\CodeQualityPack\ReasonRequiredInDeprecationRule
        arguments:
            - @PHPStan\PhpDocParser\Lexer\Lexer
            - @PHPStan\PhpDocParser\Parser\TypeParser
            - @PHPStan\PhpDocParser\Parser\ConstExprParser
        tags:
            - phpstan.rules.rule