guzzle / promises

Promises/A+ library for PHP with synchronous support
MIT License
7.61k stars 116 forks source link

The each() function is deprecated #93

Closed alexquantox closed 5 years ago

alexquantox commented 6 years ago

PHPUnit throws deprecation error for this, because as from PHP7.2 each() function is deprecated

https://github.com/guzzle/promises/blob/master/src/functions.php#L223

http://php.net/manual/en/function.each.php

sayhitovincent commented 5 years ago

Are we able to have this investigated?

alexeyshockov commented 5 years ago

@alexquantox, this is call is not for \each() (PHP's built-in function, deprecated), but for \GuzzleHttp\Promise\each() that lives in the same file.

Please, update the ticket with the error that you get from PHPUnit. Also there is another ticket that can be related.