comparison vendor/symfony/process/InputStream.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
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 /** @var callable|null */
24 private $onEmpty = null; 24 private $onEmpty = null;
25 private $input = array(); 25 private $input = [];
26 private $open = true; 26 private $open = true;
27 27
28 /** 28 /**
29 * Sets a callback that is called when the write buffer becomes empty. 29 * Sets a callback that is called when the write buffer becomes empty.
30 */ 30 */
34 } 34 }
35 35
36 /** 36 /**
37 * Appends an input to the write buffer. 37 * Appends an input to the write buffer.
38 * 38 *
39 * @param resource|string|int|float|bool|\Traversable|null The input to append as scalar, 39 * @param resource|string|int|float|bool|\Traversable|null $input The input to append as scalar,
40 * stream resource or \Traversable 40 * stream resource or \Traversable
41 */ 41 */
42 public function write($input) 42 public function write($input)
43 { 43 {
44 if (null === $input) { 44 if (null === $input) {
45 return; 45 return;