Skip to content

Commit 60fdbfd

Browse files
committed
improve names
1 parent 63415ca commit 60fdbfd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Analyser/TypeSpecifier.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,16 +1579,16 @@ private function getConditionalSpecifiedTypes(
15791579
if (!array_key_exists($parameterName, $argsMap)) {
15801580
return null;
15811581
}
1582-
$parameterExpr = $argsMap[$parameterName];
1582+
$argumentExpr = $argsMap[$parameterName];
15831583

15841584
$targetType = $conditionalType->getTarget();
15851585
$ifType = $conditionalType->getIf();
15861586
$elseType = $conditionalType->getElse();
15871587

15881588
if (
15891589
(
1590-
$parameterExpr instanceof Node\Scalar
1591-
|| ($parameterExpr instanceof ConstFetch && in_array(strtolower($parameterExpr->name->toString()), ['true', 'false', 'null'], true))
1590+
$argumentExpr instanceof Node\Scalar
1591+
|| ($argumentExpr instanceof ConstFetch && in_array(strtolower($argumentExpr->name->toString()), ['true', 'false', 'null'], true))
15921592
)
15931593
&& $targetType->isConstantScalarValue()->yes()
15941594
) {
@@ -1604,7 +1604,7 @@ private function getConditionalSpecifiedTypes(
16041604
}
16051605

16061606
$specifiedTypes = $this->create(
1607-
$parameterExpr,
1607+
$argumentExpr,
16081608
$targetType,
16091609
$context,
16101610
$scope,
@@ -1615,7 +1615,7 @@ private function getConditionalSpecifiedTypes(
16151615
$context = $context->negate();
16161616
}
16171617

1618-
$specifiedTypes = $specifiedTypes->unionWith($this->specifyTypesInCondition($scope, $parameterExpr, $context));
1618+
$specifiedTypes = $specifiedTypes->unionWith($this->specifyTypesInCondition($scope, $argumentExpr, $context));
16191619
}
16201620

16211621
return $specifiedTypes;

0 commit comments

Comments
 (0)