From de476e9349ea4fd06161677004fde220c2e40b8a Mon Sep 17 00:00:00 2001 From: Tareq Ahamed Date: Mon, 24 Jun 2024 19:50:02 +0600 Subject: [PATCH] Add Symfony 7 and remove Symfony 4 --- .github/workflows/ci.yaml | 26 +++++++++++++++----------- Sdk/Model/Violations.php | 4 ++-- composer.json | 12 ++++++------ 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5230699..3ab8da5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Sdk/Model/Violations.php b/Sdk/Model/Violations.php index 7c38f1c..f9742e7 100644 --- a/Sdk/Model/Violations.php +++ b/Sdk/Model/Violations.php @@ -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); } diff --git a/composer.json b/composer.json index 374e24b..645667b 100644 --- a/composer.json +++ b/composer.json @@ -5,16 +5,16 @@ "require": { "php": ">=7.2", "ext-json": "*", - "jms/serializer": "^3.17", + "jms/serializer": "3.29.1", "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"