diff --git a/composer.json b/composer.json index 13634dd1b..6cf97e899 100644 --- a/composer.json +++ b/composer.json @@ -9,21 +9,21 @@ "php": "^8.3", "behat/gherkin": "4.10.*", "entropy/entropy": "dev-main", - "nette/utils": "^4.0", - "nikic/php-parser": "^5.6", - "symfony/finder": "^7.0", - "webmozart/assert": "^1.12" + "nette/utils": "^4.1", + "nikic/php-parser": "^5.7", + "symfony/finder": "^7.4", + "webmozart/assert": "^2.1" }, "require-dev": { "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1.34", + "phpstan/phpstan": "^2.1.37", "phpunit/phpunit": "^12.5", "rector/jack": "^0.5.1", - "rector/rector": "^2.3.2", + "rector/rector": "^2.3.4", "shipmonk/composer-dependency-analyser": "^1.8", "symplify/easy-coding-standard": "^13.0", "tomasvotruba/class-leak": "^2.1", - "tracy/tracy": "^2.10" + "tracy/tracy": "^2.11" }, "autoload": { "psr-4": { diff --git a/src/Command/AnalyzeCommand.php b/src/Command/AnalyzeCommand.php index 8af44e785..100734315 100644 --- a/src/Command/AnalyzeCommand.php +++ b/src/Command/AnalyzeCommand.php @@ -26,11 +26,11 @@ public function __construct( /** * @param string $projectDirectory Project directory (we find *.Context.php definition files and *.feature script files there) - * @param string[] $skip Skip a rule by identifier + * @param string[] $skips Skip a rule by identifier * * @return ExitCode::* */ - public function run(?string $projectDirectory = null, array $skip = []): int + public function run(?string $projectDirectory = null, array $skips = []): int { // fallback to current directory if ($projectDirectory === null) { @@ -81,7 +81,7 @@ public function run(?string $projectDirectory = null, array $skip = []): int /** @var RuleError[] $allRuleErrors */ $allRuleErrors = []; foreach ($this->rulesRegistry->all() as $rule) { - if (in_array($rule->getIdentifier(), $skip, true)) { + if (in_array($rule->getIdentifier(), $skips, true)) { $this->outputPrinter->writeln(sprintf('Skipping "%s" rule', $rule->getIdentifier())); $this->outputPrinter->newLine(); continue;