Updated Rector to commit f3750d785fd5128c9b3f124036d5e6532fc63807

f3750d785f [DeadCode] Skip by docblock definition on RemoveAlwaysTrueIfConditionRector (#6461)
This commit is contained in:
Tomas Votruba 2024-11-21 03:05:46 +00:00
parent 8b18794be6
commit 7028045e34
2 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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
*/