From 2cbd10ab775420f9d34ea3dd9d4cb152676d26ad Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 15 Jul 2024 17:37:05 +0000 Subject: [PATCH] Updated Rector to commit d6de24c449d21207b50bd5342e3ddc0836a9265b https://github.com/rectorphp/rector-src/commit/d6de24c449d21207b50bd5342e3ddc0836a9265b [TypeDeclaration] Skip variadic on AddParamTypeBasedOnPHPUnitDataProviderRector (#6150) --- .../AddParamTypeBasedOnPHPUnitDataProviderRector.php | 3 +++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/TypeDeclaration/Rector/ClassMethod/AddParamTypeBasedOnPHPUnitDataProviderRector.php b/rules/TypeDeclaration/Rector/ClassMethod/AddParamTypeBasedOnPHPUnitDataProviderRector.php index ae1b386a4e7..9dde49e9b15 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/AddParamTypeBasedOnPHPUnitDataProviderRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/AddParamTypeBasedOnPHPUnitDataProviderRector.php @@ -307,6 +307,9 @@ private function refactorClassMethod(ClassMethod $classMethod, Class_ $class, ar if ($param->type instanceof Node) { continue; } + if ($param->variadic) { + continue; + } $paramTypes = []; foreach ($dataProviderNodes as $dataProviderNode) { $paramTypes[] = $this->inferParam($class, $parameterPosition, $dataProviderNode); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 90432bdd4d7..33d4ed1404e 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '07a3bdc597ce144a9ccbe370004b437d4118e0c2'; + public const PACKAGE_VERSION = 'd6de24c449d21207b50bd5342e3ddc0836a9265b'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-07-16 00:28:21'; + public const RELEASE_DATE = '2024-07-16 00:34:42'; /** * @var int */