From 84860817377d1396d00357997bd3f80dc3b5c7da Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 27 Nov 2023 13:46:01 +0000 Subject: [PATCH] Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d https://github.com/rectorphp/rector-src/commit/e66754adeaad2e9cb67cf1784a6255285dfc542d [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291) --- .../FunctionLike/AddReturnTypeDeclarationFromYieldsRector.php | 2 +- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/TypeDeclaration/Rector/FunctionLike/AddReturnTypeDeclarationFromYieldsRector.php b/rules/TypeDeclaration/Rector/FunctionLike/AddReturnTypeDeclarationFromYieldsRector.php index 50eaf1a2ae3..4a13c9a4128 100644 --- a/rules/TypeDeclaration/Rector/FunctionLike/AddReturnTypeDeclarationFromYieldsRector.php +++ b/rules/TypeDeclaration/Rector/FunctionLike/AddReturnTypeDeclarationFromYieldsRector.php @@ -106,7 +106,7 @@ CODE_SAMPLE return null; } // skip already filled type - if ($node->returnType instanceof Node && $this->isNames($node->returnType, ['Iterator', 'Generator', 'Traversable'])) { + if ($node->returnType instanceof Node && $this->isNames($node->returnType, ['Iterator', 'Generator', 'Traversable', 'iterable'])) { return null; } if ($node instanceof ClassMethod && $this->classMethodReturnTypeOverrideGuard->shouldSkipClassMethod($node, $scope)) { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 9bba8b7439e..ffc350ac7b7 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 = '0.18.11'; + public const PACKAGE_VERSION = 'e66754adeaad2e9cb67cf1784a6255285dfc542d'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-11-26 01:23:33'; + public const RELEASE_DATE = '2023-11-27 13:43:57'; /** * @var int */