kafkiansky / reduce-arguments
Psalm plugin that makes sure that you don't use too many arguments in functions and methods.
Package info
github.com/kafkiansky/reduce-arguments
Type:psalm-plugin
pkg:composer/kafkiansky/reduce-arguments
v1.0.0
2021-03-07 09:22 UTC
Requires
- php: ^7.3 || ^8.0
- codeception/module-asserts: ^1.0.0
- codeception/module-phpbrowser: ^1.0.0
- vimeo/psalm: ^4.3.0
Requires (Dev)
- phpunit/phpunit: ^8.0
- weirdan/codeception-psalm-module: ^0.13.1
This package is auto-updated.
Last update: 2026-03-07 21:00:26 UTC
README
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.