composer update
This commit is contained in:
10
vendor/symfony/process/InputStream.php
vendored
10
vendor/symfony/process/InputStream.php
vendored
@@ -20,7 +20,7 @@ use Symfony\Component\Process\Exception\RuntimeException;
|
||||
*/
|
||||
class InputStream implements \IteratorAggregate
|
||||
{
|
||||
/** @var null|callable */
|
||||
/** @var callable|null */
|
||||
private $onEmpty = null;
|
||||
private $input = array();
|
||||
private $open = true;
|
||||
@@ -36,8 +36,8 @@ class InputStream implements \IteratorAggregate
|
||||
/**
|
||||
* Appends an input to the write buffer.
|
||||
*
|
||||
* @param resource|string|int|float|bool|\Traversable|null The input to append as scalar,
|
||||
* stream resource or \Traversable
|
||||
* @param resource|string|int|float|bool|\Traversable|null $input The input to append as scalar,
|
||||
* stream resource or \Traversable
|
||||
*/
|
||||
public function write($input)
|
||||
{
|
||||
@@ -78,9 +78,7 @@ class InputStream implements \IteratorAggregate
|
||||
$current = array_shift($this->input);
|
||||
|
||||
if ($current instanceof \Iterator) {
|
||||
foreach ($current as $cur) {
|
||||
yield $cur;
|
||||
}
|
||||
yield from $current;
|
||||
} else {
|
||||
yield $current;
|
||||
}
|
||||
|
Reference in New Issue
Block a user