Updated Rector to commit ff0705b18b7f2e8e7e9062d0d4fd87a4c5c1b20e

ff0705b18b [CodeQuality] Add Goto_ possible return null on SilentVoidResolver under Do_ (#5773)
This commit is contained in:
Tomas Votruba 2024-03-25 15:52:31 +00:00
parent cc37bbf217
commit 4c2b400cdb
2 changed files with 4 additions and 3 deletions

View File

@ -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_;
});
}
/**

View File

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