Updated Rector to commit 1bbb3faaed01bd234f8e53564d1686529551e75a

1bbb3faaed [TypeDeclaration] Skip maybe not returned on while on ReturnUnionTypeRector (#5812)
This commit is contained in:
Tomas Votruba 2024-04-08 13:19:12 +00:00
parent 415f0bbf34
commit e56fb5adb0
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ final class SilentVoidResolver
if (!$this->hasStmtsAlwaysReturnOrExit($stmt->stmts)) { if (!$this->hasStmtsAlwaysReturnOrExit($stmt->stmts)) {
return \false; return \false;
} }
return !$this->isFoundLoopControl($stmt); return $stmt instanceof Do_ && !$this->isFoundLoopControl($stmt);
} }
/** /**
* @param \PhpParser\Node\Stmt|\PhpParser\Node\Expr $stmt * @param \PhpParser\Node\Stmt|\PhpParser\Node\Expr $stmt

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '54e2e110d506d6e06e45cb808ce87824306ddd4f'; public const PACKAGE_VERSION = '1bbb3faaed01bd234f8e53564d1686529551e75a';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-04-08 14:20:29'; public const RELEASE_DATE = '2024-04-08 20:16:33';
/** /**
* @var int * @var int
*/ */