False Positive: Guzzlehttp Promises
dalcuizar opened this issue · comments
dalcuizar commented
vendor/guzzlehttp/promises/src/functions.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------
222 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
257 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
313 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
------------------------------------------------------------------------------------------------------
File uses custom each function:
function each(
$iterable,
callable $onFulfilled = null,
callable $onRejected = null
) {
return (new EachPromise($iterable, [
'fulfilled' => $onFulfilled,
'rejected' => $onRejected
]))->promise();
}