diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:30:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:30:22 +0000 |
commit | 9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce (patch) | |
tree | b00a07aca10f581c2be69d612a0a397a415eeb6b /vendor/guzzlehttp/psr7/src/PumpStream.php | |
parent | Releasing progress-linux version 0.13.1-1~progress7.99u1. (diff) | |
download | icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.tar.xz icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.zip |
Merging upstream version 0.13.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/guzzlehttp/psr7/src/PumpStream.php')
-rw-r--r-- | vendor/guzzlehttp/psr7/src/PumpStream.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/guzzlehttp/psr7/src/PumpStream.php b/vendor/guzzlehttp/psr7/src/PumpStream.php index 5585190..e204070 100644 --- a/vendor/guzzlehttp/psr7/src/PumpStream.php +++ b/vendor/guzzlehttp/psr7/src/PumpStream.php @@ -18,7 +18,7 @@ use Psr\Http\Message\StreamInterface; */ final class PumpStream implements StreamInterface { - /** @var callable|null */ + /** @var callable(int): (string|false|null)|null */ private $source; /** @var int|null */ @@ -163,9 +163,9 @@ final class PumpStream implements StreamInterface private function pump(int $length): void { - if ($this->source) { + if ($this->source !== null) { do { - $data = call_user_func($this->source, $length); + $data = ($this->source)($length); if ($data === false || $data === null) { $this->source = null; |