Skip to content

Commit

Permalink
Add Symfony 7 and remove Symfony 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tareqas committed Jun 24, 2024
1 parent dac4f0e commit 268be59
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,27 @@ jobs:
strategy:
fail-fast: false
matrix:
sf-version: [ '^4.4', '^5.4', '^6.3' ]
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
sf-version: [ '^5.4', '^6.4', '^7.2' ]
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
exclude:
- sf-version: '^4.4'
- sf-version: '^6.4'
php-version: '7.2'
- sf-version: '^6.4'
php-version: '7.3'
- sf-version: '^6.4'
php-version: '7.4'
- sf-version: '^6.4'
php-version: '8.0'
- sf-version: '^4.4'
php-version: '8.1'
- sf-version: '^4.4'
php-version: '8.2'
- sf-version: '^6.3'
- sf-version: '^7.2'
php-version: '7.2'
- sf-version: '^6.3'
- sf-version: '^7.2'
php-version: '7.3'
- sf-version: '^6.3'
- sf-version: '^7.2'
php-version: '7.4'
- sf-version: '^6.3'
- sf-version: '^7.2'
php-version: '8.0'
- sf-version: '^7.2'
php-version: '8.1'

steps:
- uses: actions/checkout@master
Expand Down
4 changes: 2 additions & 2 deletions Sdk/Model/Violations.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class Violations implements \Countable, \IteratorAggregate
*/
private $violations = [];

public function count()
public function count(): int
{
return \count($this->violations);
}

public function getIterator()
public function getIterator(): \Traversable
{
return new \ArrayIterator($this->violations);
}
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"ext-json": "*",
"jms/serializer": "^3.17",
"psr/log": "^1.0",
"symfony/http-client": "^4.4|^5.4|^6.3",
"symfony/console": "^4.4|^5.4|^6.3",
"symfony/expression-language": "^4.4|^5.4|^6.3"
"symfony/http-client": "^5.4|^6.4|^7.0",
"symfony/console": "^5.4|^6.4|^7.0",
"symfony/expression-language": "^5.4|^6.4|^7.0"
},
"require-dev": {
"monolog/monolog": "^1.4",
"symfony/phpunit-bridge": "^4.4|^5.4|^6.3",
"symfony/var-dumper": "^4.4|^5.4|^6.3"
"symfony/phpunit-bridge": "^5.4|^6.4|^7.0",
"symfony/var-dumper": "^5.4|^6.4|^7.0"
},
"suggest": {
"monolog/monolog": "Will add some log capability to this library"
Expand Down

0 comments on commit 268be59

Please sign in to comment.