mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Updated Rector to commit 3df5a626e5ae8e13aaef8abfc41a136dbf1f367e
3df5a626e5
Clean up SafeLeftTypeBooleanAndOrAnalyzer (#5819)
This commit is contained in:
parent
6059061e25
commit
3a03381bf8
|
@ -59,9 +59,7 @@ final class SafeLeftTypeBooleanAndOrAnalyzer
|
||||||
// skip trait this
|
// skip trait this
|
||||||
$classReflection = $this->reflectionResolver->resolveClassReflection($booleanAnd);
|
$classReflection = $this->reflectionResolver->resolveClassReflection($booleanAnd);
|
||||||
if ($classReflection instanceof ClassReflection && $classReflection->isTrait()) {
|
if ($classReflection instanceof ClassReflection && $classReflection->isTrait()) {
|
||||||
return !(bool) $this->betterNodeFinder->findFirst($booleanAnd->left, static function (Node $node) : bool {
|
return !$booleanAnd->left instanceof Instanceof_;
|
||||||
return $node instanceof Instanceof_;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return \true;
|
return \true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'ec59456217e4e2c212c0486cd0ee33221e5ab86c';
|
public const PACKAGE_VERSION = '3df5a626e5ae8e13aaef8abfc41a136dbf1f367e';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-12 16:45:31';
|
public const RELEASE_DATE = '2024-04-12 09:48:20';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user