Skip to content

Commit

Permalink
Added compatibility with PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
batumibiz committed Nov 22, 2023
1 parent af78d17 commit 9e1bbbd
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'

- name: Get composer cache directory
id: composer-cache
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
tests:
strategy:
matrix:
php-versions: [ '8.1', '8.2' ]
php-versions: [ '8.1', '8.2', '8.3' ]

runs-on: ubuntu-latest

Expand Down Expand Up @@ -42,20 +42,20 @@ jobs:
run: sudo /etc/init.d/mysql start

- name: Test
if: matrix.php-versions != '8.1'
if: matrix.php-versions != '8.2'
run: composer test
continue-on-error: true

- name: Test with Coverage
if: matrix.php-versions == '8.1'
if: matrix.php-versions == '8.2'
working-directory: ./
run: |
composer test-coverage
sed -i 's/\/home\/runner\/work\/testutils\/testutils\//\/github\/workspace\//g' report.xml
sed -i 's/\/home\/runner\/work\/testutils\/testutils\//\/github\/workspace\//g' clover.xml
- name: Scan code with SonarCloud
if: matrix.php-versions == '8.1'
if: matrix.php-versions == '8.2'
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"require": {
"php": "~8.1 || ~8.2",
"php": "~8.1 || ~8.2 || ~8.3",
"ext-pdo": "*",
"phpunit/phpunit": "^10.4"
},
Expand Down
92 changes: 46 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e1bbbd

Please sign in to comment.