diff options
| author | wn_ <invalid@email.com> | 2024-10-07 20:22:01 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-10-07 20:22:01 +0000 |
| commit | 124c4e254250ebac336392711b32dfd6fa3caef3 (patch) | |
| tree | ab331cad28c1619db93474c846b11dc3e131c85f /vendor/guzzlehttp/psr7/src/PumpStream.php | |
| parent | df489df309dc831b357a9cc36fe72ad5a99d22e0 (diff) | |
Update Guzzle to 7.9.2
https://github.com/guzzle/guzzle/releases
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 5585190cf..e2040709f 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; |