Skip to content

Commit

Permalink
DevKit updates for 3.x branch (#591)
Browse files Browse the repository at this point in the history
* DevKit updates

* Fix cs

Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr>
  • Loading branch information
SonataCI and VincentLanglet committed May 29, 2022
1 parent 6dcbb70 commit c76ccd3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
allowed-to-fail: false
symfony-require: 6.0.*
variant: symfony/symfony:"6.0.*"
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 6.1.*
variant: symfony/symfony:"6.1.*"

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions src/Source/AbstractPropertySourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getDateTimeFormat(): string
*
* @return array<string, mixed>
*/
protected function getCurrentData(object | array $current): array
protected function getCurrentData(object|array $current): array
{
$data = [];
foreach ($this->fields as $key => $field) {
Expand All @@ -110,7 +110,7 @@ protected function getCurrentData(object | array $current): array
return $data;
}

protected function getValue(mixed $value): bool | int | float | string | null
protected function getValue(mixed $value): bool|int|float|string|null
{
return match (true) {
\is_array($value) => '['.implode(', ', array_map([$this, 'getValue'], $value)).']',
Expand Down
2 changes: 1 addition & 1 deletion src/Source/CsvSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class CsvSourceIterator implements \Iterator
/**
* @var array<string|null>|false
*/
private array | false $currentLine = [];
private array|false $currentLine = [];

public function __construct(
private string $filename,
Expand Down
2 changes: 1 addition & 1 deletion src/Source/DoctrineDBALConnectionSourceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class DoctrineDBALConnectionSourceIterator implements \Iterator
/**
* @var array<string, mixed>|false
*/
private array | false $current = false;
private array|false $current = false;

private int $position = 0;

Expand Down
2 changes: 1 addition & 1 deletion tests/Source/AbstractPropertySourceIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function rewind(): void
$this->iterator->rewind();
}

public function getValue(mixed $value): bool | int | float | string | null
public function getValue(mixed $value): bool|int|float|string|null
{
return parent::getValue($value);
}
Expand Down

0 comments on commit c76ccd3

Please sign in to comment.