Skip to content

Commit f4ab1b5

Browse files
authored
misc (#24)
1 parent 6f787fa commit f4ab1b5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
"php": "^8.3",
1010
"behat/gherkin": "4.10.*",
1111
"entropy/entropy": "dev-main",
12-
"nette/utils": "^4.0",
13-
"nikic/php-parser": "^5.6",
14-
"symfony/finder": "^7.0",
15-
"webmozart/assert": "^1.12"
12+
"nette/utils": "^4.1",
13+
"nikic/php-parser": "^5.7",
14+
"symfony/finder": "^7.4",
15+
"webmozart/assert": "^2.1"
1616
},
1717
"require-dev": {
1818
"phpstan/extension-installer": "^1.4",
19-
"phpstan/phpstan": "^2.1.34",
19+
"phpstan/phpstan": "^2.1.37",
2020
"phpunit/phpunit": "^12.5",
2121
"rector/jack": "^0.5.1",
22-
"rector/rector": "^2.3.2",
22+
"rector/rector": "^2.3.4",
2323
"shipmonk/composer-dependency-analyser": "^1.8",
2424
"symplify/easy-coding-standard": "^13.0",
2525
"tomasvotruba/class-leak": "^2.1",
26-
"tracy/tracy": "^2.10"
26+
"tracy/tracy": "^2.11"
2727
},
2828
"autoload": {
2929
"psr-4": {

src/Command/AnalyzeCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public function __construct(
2626

2727
/**
2828
* @param string $projectDirectory Project directory (we find *.Context.php definition files and *.feature script files there)
29-
* @param string[] $skip Skip a rule by identifier
29+
* @param string[] $skips Skip a rule by identifier
3030
*
3131
* @return ExitCode::*
3232
*/
33-
public function run(?string $projectDirectory = null, array $skip = []): int
33+
public function run(?string $projectDirectory = null, array $skips = []): int
3434
{
3535
// fallback to current directory
3636
if ($projectDirectory === null) {
@@ -81,7 +81,7 @@ public function run(?string $projectDirectory = null, array $skip = []): int
8181
/** @var RuleError[] $allRuleErrors */
8282
$allRuleErrors = [];
8383
foreach ($this->rulesRegistry->all() as $rule) {
84-
if (in_array($rule->getIdentifier(), $skip, true)) {
84+
if (in_array($rule->getIdentifier(), $skips, true)) {
8585
$this->outputPrinter->writeln(sprintf('<fg=cyan>Skipping "%s" rule</>', $rule->getIdentifier()));
8686
$this->outputPrinter->newLine();
8787
continue;

0 commit comments

Comments
 (0)