From e6c258f11ad9ec448ee9a73a593e12a004b7fa3d Mon Sep 17 00:00:00 2001 From: nadar Date: Tue, 31 Oct 2023 07:55:04 +0100 Subject: [PATCH 1/2] Added php8.3 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From a69c6a4eb283daaf126086137099bb2214c20f4a Mon Sep 17 00:00:00 2001 From: nadar Date: Tue, 31 Oct 2023 06:55:23 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- src/ComposerReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());