diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd19b9b..9f21d27 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 diff --git a/src/ComposerReader.php b/src/ComposerReader.php index 98fb956..c71b1cf 100755 --- a/src/ComposerReader.php +++ b/src/ComposerReader.php @@ -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());