Skip to content

Commit 9b0682a

Browse files
authored
Update dev tools (#1045)
1 parent 6115bff commit 9b0682a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+325
-326
lines changed

.dev-tools/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"require": {
44
"php": "^8.4",
55
"ergebnis/composer-normalize": "^2.47",
6-
"infection/infection": "^0.29.14",
6+
"infection/infection": "^0.30.1",
77
"kubawerlos/composer-smaller-lock": "^1.1.0",
8-
"kubawerlos/php-cs-fixer-config": "^5.2",
8+
"kubawerlos/php-cs-fixer-config": "^5.3",
99
"mi-schi/phpmd-extension": "^4.3",
1010
"phpmd/phpmd": "^2.15",
1111
"phpstan/extension-installer": "^1.4.3",
1212
"phpstan/phpstan": "^2.1.17",
1313
"phpstan/phpstan-phpunit": "^2.0.6",
1414
"phpstan/phpstan-strict-rules": "^2.0.4",
1515
"shipmonk/composer-dependency-analyser": "^1.8.3",
16-
"squizlabs/php_codesniffer": "^3.13.0",
16+
"squizlabs/php_codesniffer": "^3.13.2",
1717
"tomasvotruba/type-coverage": "^2.0.2",
1818
"vimeo/psalm": "^6.12"
1919
},

.dev-tools/composer.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.dev-tools/src/Fixer/PriorityInternalFixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
8080
$sequencesStartIndex = \key($indices);
8181
\assert(\is_int($sequencesStartIndex));
8282

83-
$commentContent = $this->getCommentContent($className);
83+
$commentContent = self::getCommentContent($className);
8484

8585
if ($tokens[$sequencesStartIndex - 2]->isGivenKind(\T_DOC_COMMENT)) {
8686
$tokens[$sequencesStartIndex - 2] = new Token([\T_DOC_COMMENT, $commentContent]);
@@ -117,7 +117,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
117117
$tokens->overrideRange($priorityStartIndex, $priorityEndIndex, $priorityTokens);
118118
}
119119

120-
private function getCommentContent(string $className): string
120+
private static function getCommentContent(string $className): string
121121
{
122122
$comment = "/**\n";
123123
$priorityCollection = PriorityCollection::create();

.dev-tools/src/Priority/PriorityFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ public function getPriority(): int
6565
*/
6666
public function getFixerToRunAfterNames(): array
6767
{
68-
return $this->getFixerNames($this->fixersToRunAfter);
68+
return self::getFixerNames($this->fixersToRunAfter);
6969
}
7070

7171
/**
7272
* @return list<string>
7373
*/
7474
public function getFixerToRunBeforeNames(): array
7575
{
76-
return $this->getFixerNames($this->fixersToRunBefore);
76+
return self::getFixerNames($this->fixersToRunBefore);
7777
}
7878

7979
public function calculatePriority(bool $requireAllRelationHavePriority): bool
@@ -107,7 +107,7 @@ public function calculatePriority(bool $requireAllRelationHavePriority): bool
107107
*
108108
* @return list<string>
109109
*/
110-
private function getFixerNames(array $priorityFixers): array
110+
private static function getFixerNames(array $priorityFixers): array
111111
{
112112
$fixers = \array_map(
113113
static fn (self $priorityFixer): string => (new \ReflectionObject($priorityFixer->fixer))->getShortName(),

0 commit comments

Comments
 (0)