Updated Rector to commit 82d71724f2e2fff036a859e3fe2589fa82adb633

82d71724f2 [TypeDeclaration] Ensure always return with Expr on maybe continued in next stmt on SilentVoidResolver (#5771)
This commit is contained in:
Tomas Votruba 2024-03-25 08:45:48 +00:00
parent be393d497b
commit cc37bbf217
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ final class SilentVoidResolver
*/
private function isStopped($stmt) : bool
{
return $stmt instanceof Throw_ || $stmt instanceof Exit_ || $stmt instanceof Return_ || $stmt instanceof Yield_ || $stmt instanceof YieldFrom;
return $stmt instanceof Throw_ || $stmt instanceof Exit_ || $stmt instanceof Return_ && $stmt->expr instanceof Expr || $stmt instanceof Yield_ || $stmt instanceof YieldFrom;
}
private function isSwitchWithAlwaysReturnOrExit(Switch_ $switch) : bool
{

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'fc250dd8da281cb79f5657d2f5d6c6c0053e54d1';
public const PACKAGE_VERSION = '82d71724f2e2fff036a859e3fe2589fa82adb633';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-24 21:08:05';
public const RELEASE_DATE = '2024-03-25 15:43:36';
/**
* @var int
*/