mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 7976482b3b067758fc88b000794e8cb94a4b2389
7976482b3b
ExplicitBoolCompareRector: skip phpdoc (#5567)
This commit is contained in:
parent
362258a1f6
commit
c65d65d663
|
@ -22,6 +22,7 @@ use PhpParser\Node\Scalar\LNumber;
|
|||
use PhpParser\Node\Scalar\String_;
|
||||
use PhpParser\Node\Stmt\ElseIf_;
|
||||
use PhpParser\Node\Stmt\If_;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer;
|
||||
use Rector\NodeTypeResolver\TypeAnalyzer\StringTypeAnalyzer;
|
||||
|
@ -110,8 +111,8 @@ CODE_SAMPLE
|
|||
if ($conditionNode instanceof Bool_) {
|
||||
return null;
|
||||
}
|
||||
$conditionStaticType = $this->getType($conditionNode);
|
||||
if ($conditionStaticType->isBoolean()->yes()) {
|
||||
$conditionStaticType = $this->nodeTypeResolver->getNativeType($conditionNode);
|
||||
if ($conditionStaticType instanceof MixedType || $conditionStaticType->isBoolean()->yes()) {
|
||||
return null;
|
||||
}
|
||||
$binaryOp = $this->resolveNewConditionNode($conditionNode, $isNegated);
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '1.0.0';
|
||||
public const PACKAGE_VERSION = '7976482b3b067758fc88b000794e8cb94a4b2389';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-06 13:21:14';
|
||||
public const RELEASE_DATE = '2024-02-06 21:34:49';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,7 @@ $loader = (static function () {
|
|||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||
$existingComposerAutoloadFiles,
|
||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
||||
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
|
||||
);
|
||||
|
||||
return $loader;
|
||||
|
|
Loading…
Reference in New Issue