mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d
e66754adea
[TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291)
This commit is contained in:
parent
9621124c86
commit
8486081737
|
@ -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)) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue