Skip to content

Commit

Permalink
Added compatibility with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
batumibiz committed Dec 14, 2024
1 parent d80db35 commit c84c454
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 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.2'
php-version: '8.3'

- 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.2'
php-version: '8.3'

- name: Get composer cache directory
id: composer-cache
Expand Down
10 changes: 5 additions & 5 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.2', '8.3' ]
php-versions: [ '8.2', '8.3', '8.4' ]

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.2'
if: matrix.php-versions != '8.3'
run: composer test
continue-on-error: true

- name: Test with Coverage
if: matrix.php-versions == '8.2'
if: matrix.php-versions == '8.3'
working-directory: ./
run: |
composer test-coverage
sed -i 's/\/home\/runner\/work\/system\/system\//\/github\/workspace\//g' report.xml
sed -i 's/\/home\/runner\/work\/system\/system\//\/github\/workspace\//g' clover.xml
- name: Scan code with SonarCloud
if: matrix.php-versions == '8.2'
if: matrix.php-versions == '8.3'
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -72,7 +72,7 @@ jobs:
-Dsonar.php.coverage.reportPaths=clover.xml
- name: Test with latest dependencies
if: matrix.php-versions == '8.2'
if: matrix.php-versions == '8.3'
run: |
composer update
composer test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "~8.2 || ~8.3",
"php": "~8.2 || ~8.3 || ~8.4",
"ext-pdo": "*",
"ext-random": "*",
"filp/whoops": "^2.16",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

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

0 comments on commit c84c454

Please sign in to comment.