diff --git a/.github/workflows/symfony_compatibility.yml b/.github/workflows/symfony_compatibility.yml index 945c1bf..77cfe2e 100644 --- a/.github/workflows/symfony_compatibility.yml +++ b/.github/workflows/symfony_compatibility.yml @@ -17,14 +17,8 @@ jobs: strategy: fail-fast: false matrix: - operating-system: [ ubuntu-latest ] - php: ['8.0', '8.1', '8.2'] - symfony: ['6.0', '6.1', '6.2'] - exclude: - - php: 8.0 - symfony: 6.1 - - php: 8.0 - symfony: 6.2 + php: ['8.2', '8.3', '8.4'] + symfony: ['7.0', '7.1', '7.2', '7.3'] steps: - name: Branch name run: echo $GITHUB_HEAD_REF @@ -47,4 +41,4 @@ jobs: run: bin/console about - name: Install sdk - run: composer require --prefer-dist --no-progress dokobit/ws-api-sdk-php:dev-$GITHUB_HEAD_REF \ No newline at end of file + run: composer require --prefer-dist --no-progress dokobit/ws-api-sdk-php:dev-$GITHUB_HEAD_REF diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e836670..68dbc31 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,11 @@ name: Tests on: push: - branches: [ "DEV-3128" ] + branches: + - "3.*" + pull_request: + branches: + - "3.*" permissions: contents: read @@ -14,7 +18,7 @@ jobs: fail-fast: false matrix: operating-system: [ ubuntu-latest ] - php: ['8.0', '8.1', '8.2'] + php: ['8.2', '8.3', '8.4'] steps: - uses: actions/checkout@v3 @@ -39,4 +43,4 @@ jobs: run: composer install --dev --prefer-dist --no-progress - name: Run tests - run: bin/phpunit --testsuite=Unit \ No newline at end of file + run: bin/phpunit --testsuite=Unit diff --git a/composer.json b/composer.json index b948ba5..4214ecb 100644 --- a/composer.json +++ b/composer.json @@ -7,9 +7,9 @@ "homepage": "https://www.dokobit.com/solutions", "require": { - "php" : "^8.0", + "php" : "^8.2", "guzzlehttp/guzzle" : "~7.0", - "symfony/validator" : "~6.0" + "symfony/validator" : "~7.0" }, "require-dev": { "psr/log" : "~1.0", diff --git a/src/Validator/Constraints/Code.php b/src/Validator/Constraints/Code.php index b07dc7b..f45efaa 100644 --- a/src/Validator/Constraints/Code.php +++ b/src/Validator/Constraints/Code.php @@ -18,7 +18,7 @@ class Code extends Regex /** * @var string */ - public $message = 'Code format is not valid'; + public string $message = 'Code format is not valid'; /** * @param mixed $options diff --git a/src/Validator/Constraints/Phone.php b/src/Validator/Constraints/Phone.php index 9933428..1cd4c1c 100644 --- a/src/Validator/Constraints/Phone.php +++ b/src/Validator/Constraints/Phone.php @@ -18,7 +18,7 @@ class Phone extends Regex /** * @var string */ - public $message = 'Phone number format is not valid'; + public string $message = 'Phone number format is not valid'; /** * @param mixed $options