mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-16 16:12:22 +00:00
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\Scalar\String_;
|
||||||
use PhpParser\Node\Stmt\ElseIf_;
|
use PhpParser\Node\Stmt\ElseIf_;
|
||||||
use PhpParser\Node\Stmt\If_;
|
use PhpParser\Node\Stmt\If_;
|
||||||
|
use PHPStan\Type\MixedType;
|
||||||
use PHPStan\Type\ObjectType;
|
use PHPStan\Type\ObjectType;
|
||||||
use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer;
|
use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer;
|
||||||
use Rector\NodeTypeResolver\TypeAnalyzer\StringTypeAnalyzer;
|
use Rector\NodeTypeResolver\TypeAnalyzer\StringTypeAnalyzer;
|
||||||
|
@ -110,8 +111,8 @@ CODE_SAMPLE
|
||||||
if ($conditionNode instanceof Bool_) {
|
if ($conditionNode instanceof Bool_) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$conditionStaticType = $this->getType($conditionNode);
|
$conditionStaticType = $this->nodeTypeResolver->getNativeType($conditionNode);
|
||||||
if ($conditionStaticType->isBoolean()->yes()) {
|
if ($conditionStaticType instanceof MixedType || $conditionStaticType->isBoolean()->yes()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$binaryOp = $this->resolveNewConditionNode($conditionNode, $isNegated);
|
$binaryOp = $this->resolveNewConditionNode($conditionNode, $isNegated);
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '1.0.0';
|
public const PACKAGE_VERSION = '7976482b3b067758fc88b000794e8cb94a4b2389';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-02-06 13:21:14';
|
public const RELEASE_DATE = '2024-02-06 21:34:49';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
2
vendor/scoper-autoload.php
vendored
2
vendor/scoper-autoload.php
vendored
|
@ -14,7 +14,7 @@ $loader = (static function () {
|
||||||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||||
$existingComposerAutoloadFiles,
|
$existingComposerAutoloadFiles,
|
||||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user