Skip to content

Commit 857ae4b

Browse files
committed
Update TypeSpecifier.php
1 parent 0f26349 commit 857ae4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ public function specifyTypesInCondition(
687687
if ($context->null()) {
688688
$specifiedTypes = $this->specifyTypesInCondition($scope->exitFirstLevelStatements(), $expr->expr, $context)->setRootExpr($expr);
689689

690-
// infer $arr[$key] after $arr[array_rand($arr)]
690+
// infer $arr[$key] after $key = array_rand($arr)
691691
if (
692692
$expr->expr instanceof FuncCall
693693
&& $expr->expr->name instanceof Name

0 commit comments

Comments
 (0)