Skip to content

Commit

Permalink
Fix deprecation triggered by MultiLazyStreamWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Jun 13, 2024
1 parent b19fd3b commit 4dd2248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/MultiLazyStreamWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4dd2248

Please sign in to comment.