diff --git a/composer.json b/composer.json index 72193a7..4811993 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "test": "./vendor/bin/phpunit" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.52", - "phpunit/phpunit": "^10.5.16" + "friendsofphp/php-cs-fixer": "^3.58", + "phpunit/phpunit": "^10.5.20" } } diff --git a/src/MultiLazyStreamWriter.php b/src/MultiLazyStreamWriter.php index 1f3d3e7..5c833e1 100644 --- a/src/MultiLazyStreamWriter.php +++ b/src/MultiLazyStreamWriter.php @@ -56,7 +56,7 @@ public function trigger(): void try { while ($this->dataProvider->valid()) { - $data = $this->dataProvider->current(); + $data = $this->dataProvider->current() ?? ''; foreach ($this->handles as $uri => $handle) { if (false === \fwrite($handle, $data)) {