Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d

e66754adea [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291)
This commit is contained in:
Tomas Votruba 2023-11-27 13:46:01 +00:00
parent 9621124c86
commit 8486081737
2 changed files with 3 additions and 3 deletions

View File

@ -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)) {

View File

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