Skip to content

Commit

Permalink
Allow Symfony 7 in require-dev (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Nov 25, 2023
1 parent 4ee5125 commit f930551
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
allowed-to-fail: false
symfony-require: 6.3.*
variant: symfony/symfony:"6.3.*"
- php-version: '8.2'
dependencies: highest
allowed-to-fail: false
symfony-require: 7.0.*
variant: symfony/symfony:"7.0.*"

steps:
- name: Checkout
Expand Down
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 f930551

Please sign in to comment.