Updated Rector to commit 237e79105fe7e8ef22020c06ee1a456f27dbcf4b

237e79105f fix: Skip remove always true condition on method calls (#6063)
This commit is contained in:
Tomas Votruba 2024-06-27 18:53:09 +00:00
parent 457380f722
commit 0226b2ea72
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,9 @@ use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ArrayDimFetch;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\BinaryOp\BooleanAnd;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Expr\StaticPropertyFetch;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Stmt;
@ -134,7 +136,7 @@ CODE_SAMPLE
}
private function shouldSkipExpr(Expr $expr) : bool
{
return (bool) $this->betterNodeFinder->findInstancesOf($expr, [PropertyFetch::class, StaticPropertyFetch::class, ArrayDimFetch::class]);
return (bool) $this->betterNodeFinder->findInstancesOf($expr, [PropertyFetch::class, StaticPropertyFetch::class, ArrayDimFetch::class, MethodCall::class, StaticCall::class]);
}
private function refactorIfWithBooleanAnd(If_ $if) : ?If_
{

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ad8b64c8c158aadddeafa35313e8f5643babda28';
public const PACKAGE_VERSION = '237e79105fe7e8ef22020c06ee1a456f27dbcf4b';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-06-27 19:57:16';
public const RELEASE_DATE = '2024-06-27 20:50:41';
/**
* @var int
*/