From f81fa92915f24fba797d7768340805343088b53a Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 3 Apr 2024 15:10:32 +0000 Subject: [PATCH] Updated Rector to commit a43f37190db97fb8807cb08f4e7171a338625387 https://github.com/rectorphp/rector-src/commit/a43f37190db97fb8807cb08f4e7171a338625387 [CodeQuality] Handle Switch maybe return on ExplicitReturnNullRector (#5801) --- rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php | 2 +- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php b/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php index 1c6c5ee9d15..af8d9a58273 100644 --- a/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php +++ b/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php @@ -142,7 +142,7 @@ final class SilentVoidResolver $hasDefault = \false; foreach ($switch->cases as $case) { if (!$case->cond instanceof Expr) { - $hasDefault = \true; + $hasDefault = $case->stmts !== []; break; } } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index c5208b34bb7..17793da1581 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '0348124a5535b99712da4debc136d2e73647b97a'; + public const PACKAGE_VERSION = 'a43f37190db97fb8807cb08f4e7171a338625387'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-04-03 21:15:24'; + public const RELEASE_DATE = '2024-04-03 22:08:14'; /** * @var int */