mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit cae06912ed7d7274d900fdc996448f100be2ed34
cae06912ed
[CodeQuality] Skip do { } while always returned on ExplicitReturnNullRector (#5760)
This commit is contained in:
parent
e6bfc79aa2
commit
74b8ed7cd4
|
@ -13,6 +13,7 @@ use PhpParser\Node\Expr\YieldFrom;
|
|||
use PhpParser\Node\FunctionLike;
|
||||
use PhpParser\Node\Stmt;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Do_;
|
||||
use PhpParser\Node\Stmt\Else_;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Finally_;
|
||||
|
@ -89,6 +90,9 @@ final class SilentVoidResolver
|
|||
if ($this->isIfReturn($stmt)) {
|
||||
return \true;
|
||||
}
|
||||
if ($stmt instanceof Do_ && $this->hasStmtsAlwaysReturnOrExit($stmt->stmts)) {
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '8874f25347004e0c19043e8b97b69470193f0941';
|
||||
public const PACKAGE_VERSION = 'cae06912ed7d7274d900fdc996448f100be2ed34';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-23 03:32:10';
|
||||
public const RELEASE_DATE = '2024-03-23 12:10:30';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue