From b986ecef08182964db676df4286d5edc5d8392ec Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 14 Feb 2026 11:36:25 +0700 Subject: [PATCH 1/4] Temporary Pin nette/utils to 4.1.2 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 02d8b0f3e1c..3d43489b9ed 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", + "nette/utils": "4.1.2", "nikic/php-parser": "^5.7", "ondram/ci-detector": "^4.2", "phpstan/phpdoc-parser": "^2.3", From 9af5af309deff5a61d0db529be18fd6a91373e63 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 14 Feb 2026 04:39:35 +0000 Subject: [PATCH 2/4] [ci-review] Rector Rectify --- .../Rector/Catch_/CatchExceptionNameMatchingTypeRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php b/rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php index 7864ddde1ca..aefa965e17b 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((string) $matches[1]) : ''; + $output = isset($matches[1]) ? strtolower($matches[1]) : ''; $output .= $matches[2] ?? ''; return $output . ($matches[3] ?? ''); From a31591ff86eb4ff372bb11e6e892bdf9804087f3 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 14 Feb 2026 11:42:08 +0700 Subject: [PATCH 3/4] fix phpstan --- phpstan.neon | 8 ++++++++ rules/Carbon/NodeFactory/CarbonCallFactory.php | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 45b7b6f6f54..6da2dceb8c9 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -467,3 +467,11 @@ parameters: - rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayMapRector.php - rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php - src/NodeTypeResolver/PHPStan/Type/TypeFactory.php + + - + message: '#'#Parameter \#1 \$value of static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\) expects object, PhpParser\\Node\\ComplexType\|PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|null given#' + path: rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php + + - + message: '#Unable to resolve the template type T in call to static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\)#' + path: rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php diff --git a/rules/Carbon/NodeFactory/CarbonCallFactory.php b/rules/Carbon/NodeFactory/CarbonCallFactory.php index 3d0180a2ee2..f5c9c92f26c 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']), - $match['unit'], - $match['operator'] + (string) $match['unit'], + (string) $match['operator'] ); if ($methodCall instanceof MethodCall) { $carbonCall = $methodCall; From 1c18e5d6ee519c9ccc53defa432de7b37dbbb173 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 14 Feb 2026 11:44:16 +0700 Subject: [PATCH 4/4] fix phpstan --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 6da2dceb8c9..326a1c7045c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -469,7 +469,7 @@ parameters: - src/NodeTypeResolver/PHPStan/Type/TypeFactory.php - - message: '#'#Parameter \#1 \$value of static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\) expects object, PhpParser\\Node\\ComplexType\|PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|null given#' + message: '#Parameter \#1 \$value of static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\) expects object, PhpParser\\Node\\ComplexType\|PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|null given#' path: rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php -