mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-16 21:08:19 +01:00
Updated Rector to commit f3750d785fd5128c9b3f124036d5e6532fc63807
f3750d785f
[DeadCode] Skip by docblock definition on RemoveAlwaysTrueIfConditionRector (#6461)
This commit is contained in:
parent
8b18794be6
commit
7028045e34
@ -98,7 +98,7 @@ CODE_SAMPLE
|
||||
if ($node->elseifs !== []) {
|
||||
return null;
|
||||
}
|
||||
$conditionStaticType = $this->getType($node->cond);
|
||||
$conditionStaticType = $this->nodeTypeResolver->getNativeType($node->cond);
|
||||
if (!$conditionStaticType->isTrue()->yes()) {
|
||||
return null;
|
||||
}
|
||||
@ -125,7 +125,7 @@ CODE_SAMPLE
|
||||
if ($this->exprAnalyzer->isNonTypedFromParam($variable)) {
|
||||
return \true;
|
||||
}
|
||||
$type = $this->getType($variable);
|
||||
$type = $this->nodeTypeResolver->getNativeType($variable);
|
||||
if ($type instanceof IntersectionType) {
|
||||
foreach ($type->getTypes() as $subType) {
|
||||
if ($subType->isArray()->yes()) {
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '57b9ccfb1404a455591a3d405377e46a71528f11';
|
||||
public const PACKAGE_VERSION = 'f3750d785fd5128c9b3f124036d5e6532fc63807';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-11-21 09:37:59';
|
||||
public const RELEASE_DATE = '2024-11-21 10:03:25';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user