Skip to content

Commit

Permalink
Merge 2.x into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Dec 10, 2021
2 parents b02462c + 9ee6f6f commit 0713819
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: none
tools: composer:v2, composer-normalize:2
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: none
tools: composer:v2
extensions: mongodb
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: none
tools: composer:v2
extensions: mongodb
Expand All @@ -61,4 +61,4 @@ jobs:
composer-options: --prefer-dist --prefer-stable

- name: Psalm
run: vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.0
run: vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.1
9 changes: 5 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
dependencies: [highest]
allowed-to-fail: [false]
symfony-require: ['']
Expand All @@ -43,22 +44,22 @@ jobs:
dependencies: lowest
allowed-to-fail: false
variant: normal
- php-version: '8.0'
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 4.4.*
variant: symfony/symfony:"4.4.*"
- php-version: '8.0'
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 5.3.*
variant: symfony/symfony:"5.3.*"
- php-version: '8.0'
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 5.4.*
variant: symfony/symfony:"5.4.*"
- php-version: '8.0'
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 6.0.*
Expand Down
2 changes: 2 additions & 0 deletions src/Source/AbstractPropertySourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function __construct(array $fields, string $dateTimeFormat = 'r')
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
$current = $this->iterator->current();
Expand All @@ -80,6 +81,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->iterator->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/AbstractXmlSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ abstract public function tagContent($parser, string $data);
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function current()
{
return $this->currentRow;
Expand All @@ -113,6 +114,7 @@ final public function current()
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function key()
{
return $this->position;
Expand Down
2 changes: 2 additions & 0 deletions src/Source/ChainSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function addSource(SourceIteratorInterface $source): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->sources->current()->current();
Expand All @@ -50,6 +51,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->sources->current()->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/CsvSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function __construct(
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->currentLine;
Expand All @@ -95,6 +96,7 @@ public function current()
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down
2 changes: 2 additions & 0 deletions src/Source/IteratorSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ final public function getIterator(): \Iterator
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->iterator->current();
Expand All @@ -52,6 +53,7 @@ final public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function key()
{
return $this->iterator->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/PDOStatementSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function __construct(\PDOStatement $statement)
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->current;
Expand All @@ -59,6 +60,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down

0 comments on commit 0713819

Please sign in to comment.