Skip to content

Commit

Permalink
Merge pull request #11 from nadar/php83
Browse files Browse the repository at this point in the history
Added php8.3
  • Loading branch information
nadar authored Oct 31, 2023
2 parents 377b827 + a69c6a4 commit 91a35c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['8.0', '8.1', '8.2']
php: ['8.0', '8.1', '8.2', '8.3']

steps:
## checkout the repoistory
Expand All @@ -94,7 +94,7 @@ jobs:
## run unit tests
- name: PHP Unit tests for PHP
run: vendor/bin/phpunit --configuration actions.phpunit.xml
if: matrix.php == '8.2' || matrix.php == '8.1'
if: matrix.php == '8.3' || matrix.php == '8.2' || matrix.php == '8.1'

## unit test with coverage
- name: PHP Unit tests for PHP 8.0
Expand Down
2 changes: 1 addition & 1 deletion src/ComposerReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ protected function jsonEncode(array $data)
$this->handleJsonError(JSON_ERROR_SYNTAX);
}, E_WARNING);

$json = json_encode($data, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
$json = json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
restore_error_handler();
$this->handleJsonError(json_last_error());

Expand Down

0 comments on commit 91a35c3

Please sign in to comment.