mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 237e79105fe7e8ef22020c06ee1a456f27dbcf4b
237e79105f
fix: Skip remove always true condition on method calls (#6063)
This commit is contained in:
parent
457380f722
commit
0226b2ea72
@ -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_
|
||||
{
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user