comparison vendor/symfony/process/InputStream.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
18 * 18 *
19 * @author Nicolas Grekas <p@tchwork.com> 19 * @author Nicolas Grekas <p@tchwork.com>
20 */ 20 */
21 class InputStream implements \IteratorAggregate 21 class InputStream implements \IteratorAggregate
22 { 22 {
23 /** @var null|callable */
23 private $onEmpty = null; 24 private $onEmpty = null;
24 private $input = array(); 25 private $input = array();
25 private $open = true; 26 private $open = true;
26 27
27 /** 28 /**
33 } 34 }
34 35
35 /** 36 /**
36 * Appends an input to the write buffer. 37 * Appends an input to the write buffer.
37 * 38 *
38 * @param resource|scalar|\Traversable|null The input to append as stream resource, scalar or \Traversable 39 * @param resource|string|int|float|bool|\Traversable|null The input to append as scalar,
40 * stream resource or \Traversable
39 */ 41 */
40 public function write($input) 42 public function write($input)
41 { 43 {
42 if (null === $input) { 44 if (null === $input) {
43 return; 45 return;