Skip to content

Commit 668171d

Browse files
committed
[ci-review] Rector Rectify
1 parent ef17dae commit 668171d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rules/Carbon/NodeFactory/CarbonCallFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function createFromDateTimeString(
3737
$methodCall = $this->createModifyMethodCall(
3838
$carbonCall,
3939
new Int_((int) $match['count']),
40-
(string) $match['unit'],
41-
(string) $match['operator']
40+
$match['unit'],
41+
$match['operator']
4242
);
4343
if ($methodCall instanceof MethodCall) {
4444
$carbonCall = $methodCall;

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($matches[1]) : '';
173+
$output = isset($matches[1]) ? strtolower((string) $matches[1]) : '';
174174
$output .= $matches[2] ?? '';
175175

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

0 commit comments

Comments
 (0)