mirror of https://github.com/rectorphp/rector.git
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:
parent
be393d497b
commit
cc37bbf217
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue