Updated Rector to commit cae06912ed7d7274d900fdc996448f100be2ed34

cae06912ed [CodeQuality] Skip do { } while always returned on ExplicitReturnNullRector (#5760)
This commit is contained in:
Tomas Votruba 2024-03-23 05:12:50 +00:00
parent e6bfc79aa2
commit 74b8ed7cd4
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

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