Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 402 Bytes

File metadata and controls

19 lines (13 loc) · 402 Bytes

Too Many Arguments Rule

Checks that methods do not have more than a specified number of arguments.

Configuration Example

    -
        class: Phauthentic\PHPStanRules\CleanCode\TooManyArgumentsRule
        arguments:
            maxArguments: 3
        tags:
            - phpstan.rules.rule

Parameters

  • maxArguments: Maximum allowed number of method arguments (required).