Skip to content

Commit

Permalink
Merge 3.x into 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Nov 26, 2023
2 parents 7f13e99 + db6bc75 commit 5da47c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"doctrine/mongodb-odm": "^2.3",
"doctrine/orm": "^2.14",
"friendsofphp/php-cs-fixer": "^3.4",
"matthiasnoback/symfony-config-test": "^4.2",
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"matthiasnoback/symfony-config-test": "^4.2 || ^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
"phpoffice/phpspreadsheet": "^1.23",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.0",
Expand All @@ -41,13 +41,13 @@
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.18",
"symfony/config": "^5.4 || ^6.2",
"symfony/dependency-injection": "^5.4 || ^6.2",
"symfony/http-foundation": "^5.4 || ^6.2",
"symfony/http-kernel": "^5.4 || ^6.2",
"symfony/phpunit-bridge": "^6.2",
"symfony/property-access": "^5.4 || ^6.2",
"symfony/routing": "^5.4 || ^6.2",
"symfony/config": "^5.4 || ^6.2 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.2 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.2 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.2 || ^7.0",
"symfony/phpunit-bridge": "^6.2 || ^7.0",
"symfony/property-access": "^5.4 || ^6.2 || ^7.0",
"symfony/routing": "^5.4 || ^6.2 || ^7.0",
"vimeo/psalm": "^5.0"
},
"conflict": {
Expand Down
6 changes: 3 additions & 3 deletions src/Writer/CsvWriterTerminate.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ final class CsvWriterTerminate extends \php_user_filter
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param int $rw_consumed
* @param bool $closing
*/
public function filter($in, $out, &$consumed, $closing): int
public function filter($in, $out, &$rw_consumed, $closing): int
{
while ($bucket = stream_bucket_make_writeable($in)) {
if (isset($this->params['terminate'])) {
$bucket->data = preg_replace('/([^\r])\n/', '$1'.$this->params['terminate'], $bucket->data);
}
$consumed += $bucket->datalen;
$rw_consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}

Expand Down

0 comments on commit 5da47c7

Please sign in to comment.