1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Allow byref args of socket_select to pass through unchanged

This commit is contained in:
Matthew Brown 2017-10-28 16:26:45 -04:00
parent 24980cd7d7
commit 51280c1670

View File

@ -1675,6 +1675,18 @@ class CallChecker
}
}
if ($method_id === 'socket_select') {
if (ExpressionChecker::analyze(
$statements_checker,
$arg->value,
$context
) === false) {
return false;
}
continue;
}
ExpressionChecker::assignByRefParam(
$statements_checker,
$arg->value,