diff --git a/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php b/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php index 00a520dcbc0..2ed454daa60 100644 --- a/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php +++ b/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php @@ -20,6 +20,7 @@ use PhpParser\Node\Stmt\Else_; use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\Finally_; use PhpParser\Node\Stmt\Function_; +use PhpParser\Node\Stmt\Goto_; use PhpParser\Node\Stmt\If_; use PhpParser\Node\Stmt\Return_; use PhpParser\Node\Stmt\Switch_; @@ -104,7 +105,7 @@ final class SilentVoidResolver return \false; } return !(bool) $this->betterNodeFinder->findFirst($do->stmts, static function (Node $node) : bool { - return $node instanceof Break_ || $node instanceof Continue_; + return $node instanceof Break_ || $node instanceof Continue_ || $node instanceof Goto_; }); } /** diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 0682c7c6b92..224c024350b 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 = '82d71724f2e2fff036a859e3fe2589fa82adb633'; + public const PACKAGE_VERSION = 'ff0705b18b7f2e8e7e9062d0d4fd87a4c5c1b20e'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-03-25 15:43:36'; + public const RELEASE_DATE = '2024-03-25 15:50:09'; /** * @var int */