kafkiansky/reduce-arguments

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Psalm plugin that makes sure that you don't use too many arguments in functions and methods.

v1.0.0 2021-03-07 09:22 UTC

This package is auto-updated.

Last update: 2021-10-07 10:50:38 UTC


README

test Software License Quality Score StyleCI Total Downloads Latest Stable Version

Contents:

Installation

Install this package with Composer:

composer require kafkiansky/reduce-arguments --dev

Configuration

If you want to use your own threshold, set the argumentsCountThreshold global variable in psalm.xml configuration:

...
<globals>
     <var name="argumentsCountThreshold" type="6" />
</globals>
...

By default, plugin use 5 as threshold.

Testing

$ composer test

License

The MIT License (MIT). See License File for more information.