mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 19:37:55 +01:00
Updated Rector to commit ff0705b18b7f2e8e7e9062d0d4fd87a4c5c1b20e
ff0705b18b
[CodeQuality] Add Goto_ possible return null on SilentVoidResolver under Do_ (#5773)
This commit is contained in:
parent
cc37bbf217
commit
4c2b400cdb
@ -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_;
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user