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 */