From 00b0097a97e8d9e3777ff5b461053018ff4faea9 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 14 Feb 2026 13:41:10 +0700 Subject: [PATCH 1/2] Bump nette/utils to ^4.1.3 (part 2) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3d43489b9ed..4a2bd6795db 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "composer/xdebug-handler": "^3.0.5", "doctrine/inflector": "^2.1", "illuminate/container": "12.39.*", - "nette/utils": "4.1.2", + "nette/utils": "^4.1.3", "nikic/php-parser": "^5.7", "ondram/ci-detector": "^4.2", "phpstan/phpdoc-parser": "^2.3", From 950dbb115126c1ffe964dd5a287fdcf8859695a6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 14 Feb 2026 06:43:21 +0000 Subject: [PATCH 2/2] [ci-review] Rector Rectify --- rules/Carbon/NodeFactory/CarbonCallFactory.php | 4 ++-- .../Rector/Catch_/CatchExceptionNameMatchingTypeRector.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/Carbon/NodeFactory/CarbonCallFactory.php b/rules/Carbon/NodeFactory/CarbonCallFactory.php index f5c9c92f26c..3d0180a2ee2 100644 --- a/rules/Carbon/NodeFactory/CarbonCallFactory.php +++ b/rules/Carbon/NodeFactory/CarbonCallFactory.php @@ -37,8 +37,8 @@ public function createFromDateTimeString( $methodCall = $this->createModifyMethodCall( $carbonCall, new Int_((int) $match['count']), - (string) $match['unit'], - (string) $match['operator'] + $match['unit'], + $match['operator'] ); if ($methodCall instanceof MethodCall) { $carbonCall = $methodCall; diff --git a/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php b/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php index aefa965e17b..7864ddde1ca 100644 --- a/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php +++ b/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php @@ -170,7 +170,7 @@ private function resolveNewVariableName(string $typeShortName): string lcfirst($typeShortName), self::STARTS_WITH_ABBREVIATION_REGEX, static function (array $matches): string { - $output = isset($matches[1]) ? strtolower($matches[1]) : ''; + $output = isset($matches[1]) ? strtolower((string) $matches[1]) : ''; $output .= $matches[2] ?? ''; return $output . ($matches[3] ?? '');