mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
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\FunctionLike;
|
||||||
use PhpParser\Node\Stmt;
|
use PhpParser\Node\Stmt;
|
||||||
use PhpParser\Node\Stmt\ClassMethod;
|
use PhpParser\Node\Stmt\ClassMethod;
|
||||||
|
use PhpParser\Node\Stmt\Do_;
|
||||||
use PhpParser\Node\Stmt\Else_;
|
use PhpParser\Node\Stmt\Else_;
|
||||||
use PhpParser\Node\Stmt\Expression;
|
use PhpParser\Node\Stmt\Expression;
|
||||||
use PhpParser\Node\Stmt\Finally_;
|
use PhpParser\Node\Stmt\Finally_;
|
||||||
|
@ -89,6 +90,9 @@ final class SilentVoidResolver
|
||||||
if ($this->isIfReturn($stmt)) {
|
if ($this->isIfReturn($stmt)) {
|
||||||
return \true;
|
return \true;
|
||||||
}
|
}
|
||||||
|
if ($stmt instanceof Do_ && $this->hasStmtsAlwaysReturnOrExit($stmt->stmts)) {
|
||||||
|
return \true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return \false;
|
return \false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '8874f25347004e0c19043e8b97b69470193f0941';
|
public const PACKAGE_VERSION = 'cae06912ed7d7274d900fdc996448f100be2ed34';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-03-23 03:32:10';
|
public const RELEASE_DATE = '2024-03-23 12:10:30';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user