Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"require": {
"php": "^8.4",
"ergebnis/composer-normalize": "^2.47",
"infection/infection": "^0.29.14",
"infection/infection": "^0.30.1",
"kubawerlos/composer-smaller-lock": "^1.1.0",
"kubawerlos/php-cs-fixer-config": "^5.2",
"kubawerlos/php-cs-fixer-config": "^5.3",
"mi-schi/phpmd-extension": "^4.3",
"phpmd/phpmd": "^2.15",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-phpunit": "^2.0.6",
"phpstan/phpstan-strict-rules": "^2.0.4",
"shipmonk/composer-dependency-analyser": "^1.8.3",
"squizlabs/php_codesniffer": "^3.13.0",
"squizlabs/php_codesniffer": "^3.13.2",
"tomasvotruba/type-coverage": "^2.0.2",
"vimeo/psalm": "^6.12"
},
Expand Down
76 changes: 38 additions & 38 deletions .dev-tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .dev-tools/src/Fixer/PriorityInternalFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
$sequencesStartIndex = \key($indices);
\assert(\is_int($sequencesStartIndex));

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

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

private function getCommentContent(string $className): string
private static function getCommentContent(string $className): string
{
$comment = "/**\n";
$priorityCollection = PriorityCollection::create();
Expand Down
6 changes: 3 additions & 3 deletions .dev-tools/src/Priority/PriorityFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ public function getPriority(): int
*/
public function getFixerToRunAfterNames(): array
{
return $this->getFixerNames($this->fixersToRunAfter);
return self::getFixerNames($this->fixersToRunAfter);
}

/**
* @return list<string>
*/
public function getFixerToRunBeforeNames(): array
{
return $this->getFixerNames($this->fixersToRunBefore);
return self::getFixerNames($this->fixersToRunBefore);
}

public function calculatePriority(bool $requireAllRelationHavePriority): bool
Expand Down Expand Up @@ -107,7 +107,7 @@ public function calculatePriority(bool $requireAllRelationHavePriority): bool
*
* @return list<string>
*/
private function getFixerNames(array $priorityFixers): array
private static function getFixerNames(array $priorityFixers): array
{
$fixers = \array_map(
static fn (self $priorityFixer): string => (new \ReflectionObject($priorityFixer->fixer))->getShortName(),
Expand Down
Loading