Skip to content

Commit 86d83cc

Browse files
Bump nette/utils to ^4.1.3 (part 2) (#7894)
* Bump nette/utils to ^4.1.3 (part 2) * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
1 parent 22644d9 commit 86d83cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"composer/xdebug-handler": "^3.0.5",
2020
"doctrine/inflector": "^2.1",
2121
"illuminate/container": "12.39.*",
22-
"nette/utils": "4.1.2",
22+
"nette/utils": "^4.1.3",
2323
"nikic/php-parser": "^5.7",
2424
"ondram/ci-detector": "^4.2",
2525
"phpstan/phpdoc-parser": "^2.3",

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)