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 */