Skip to content

Commit 700f71f

Browse files
committed
fixup! bump PHPStan to 2.1.38
1 parent 4f56a6f commit 700f71f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private function resolveNewVariableName(string $typeShortName): string
170170
lcfirst($typeShortName),
171171
self::STARTS_WITH_ABBREVIATION_REGEX,
172172
static function (array $matches): string {
173-
$output = isset($matches[1]) ? strtolower((string) $matches[1]) : '';
173+
$output = isset($matches[1]) ? strtolower($matches[1]) : '';
174174
$output .= $matches[2] ?? '';
175175

176176
return $output . ($matches[3] ?? '');

rules/Php55/RegexMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private function matchConcat(Concat $concat): ?Concat
9696
return null;
9797
}
9898

99-
if (! \str_contains((string) $matches['modifiers'], 'e')) {
99+
if (! \str_contains($matches['modifiers'], 'e')) {
100100
return null;
101101
}
102102

scripts/check-before-after-same-fixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function hasFileSameBeforeAndAfterPart(SplFileInfo $fixtureFile): bool
5959
return false;
6060
}
6161

62-
return trim((string) $parts[0]) === trim((string) $parts[1]);
62+
return trim($parts[0]) === trim($parts[1]);
6363
}
6464
}
6565

src/BetterPhpDocParser/PhpDocParser/BetterPhpDocParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function parseTagValue(TokenIterator $tokenIterator, string $tag): PhpDoc
133133
$phpDocTagValueNode->value = Strings::replace(
134134
$phpDocTagValueNode->value,
135135
self::MULTI_NEW_LINES_REGEX,
136-
static fn (array $match) => (string) $match['new_line']
136+
static fn (array $match): string => (string) $match['new_line']
137137
);
138138
}
139139

src/BetterPhpDocParser/Printer/PhpDocInfoPrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function printPhpDocNode(PhpDocNode $phpDocNode): string
181181
return Strings::replace(
182182
$output,
183183
self::NEW_LINE_WITH_SPACE_REGEX,
184-
static fn (array $match) => (string) $match['new_line']
184+
static fn (array $match): string => (string) $match['new_line']
185185
);
186186
}
187187

src/PhpParser/Parser/InlineCodeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function resolveConcatValue(Concat $concat): string
159159
return Strings::replace(
160160
$string,
161161
self::VARIABLE_IN_SINGLE_QUOTED_REGEX,
162-
static fn (array $match) => (string) $match['variable']
162+
static fn (array $match): string => (string) $match['variable']
163163
);
164164
}
165165
}

0 commit comments

Comments
 (0)