From 0ced9f4990044c09865d8e64a553ad6afa60e849 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Fri, 6 Sep 2024 12:02:13 +0200 Subject: [PATCH] Bump PSL --- .github/workflows/analyzers.yaml | 2 +- .github/workflows/code-style.yaml | 2 +- .github/workflows/tests.yaml | 2 +- composer.json | 2 +- infection.json.dist | 3 ++- src/ArrayAccess/Exception/ArrayAccessException.php | 1 + src/Exception/CloneException.php | 1 + src/Reflect/Exception/UnreflectableException.php | 1 + 8 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/analyzers.yaml b/.github/workflows/analyzers.yaml index d5d3f12..817a50e 100644 --- a/.github/workflows/analyzers.yaml +++ b/.github/workflows/analyzers.yaml @@ -25,6 +25,6 @@ jobs: tools: 'composer:v2' extensions: pcov, mbstring, posix - name: Install dependencies - run: composer update --ignore-platform-req=php --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} + run: composer update --ignore-platform-req=php+ --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} - name: Run the tests run: composer run psalm diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml index af69743..19a6651 100644 --- a/.github/workflows/code-style.yaml +++ b/.github/workflows/code-style.yaml @@ -24,6 +24,6 @@ jobs: tools: 'composer:v2' extensions: pcov, mbstring, posix - name: Install dependencies - run: composer --ignore-platform-req=php update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} + run: composer --ignore-platform-req=php+ update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} - name: Run the tests run: composer run cs diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1829d0a..6070bb1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,7 +27,7 @@ jobs: ini-values: error_reporting=E_ALL extensions: pcov, mbstring, posix - name: Install dependencies - run: composer update --ignore-platform-req=php --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest - name: Run the tests run: composer run tests - name: Check tests quality diff --git a/composer.json b/composer.json index 89f33e3..1bcaabb 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,7 @@ ], "require": { "php": "~8.1.0 || ~8.2.0 || ~8.3.0 ", - "azjezz/psl": "^2.7" + "azjezz/psl": "^2.7 || ^3.0" }, "require-dev": { "vimeo/psalm": "^5.15", diff --git a/infection.json.dist b/infection.json.dist index 559b40b..bb45d7e 100644 --- a/infection.json.dist +++ b/infection.json.dist @@ -27,7 +27,8 @@ }, "TrueValue": { "ignore": [ - "VeeWee\\Reflecta\\Reflect\\Type\\ReflectedClass::isDynamic" + "VeeWee\\Reflecta\\Reflect\\Type\\ReflectedClass::isDynamic", + "VeeWee\\Reflecta\\Reflect\\Type\\Visibility::forProperty" ] } } diff --git a/src/ArrayAccess/Exception/ArrayAccessException.php b/src/ArrayAccess/Exception/ArrayAccessException.php index d1c20c5..e5e51de 100644 --- a/src/ArrayAccess/Exception/ArrayAccessException.php +++ b/src/ArrayAccess/Exception/ArrayAccessException.php @@ -4,6 +4,7 @@ namespace VeeWee\Reflecta\ArrayAccess\Exception; use VeeWee\Reflecta\Exception\RuntimeException; +use function sprintf; final class ArrayAccessException extends RuntimeException { diff --git a/src/Exception/CloneException.php b/src/Exception/CloneException.php index 851547f..f4b963c 100644 --- a/src/Exception/CloneException.php +++ b/src/Exception/CloneException.php @@ -4,6 +4,7 @@ namespace VeeWee\Reflecta\Exception; use Throwable; +use function sprintf; final class CloneException extends RuntimeException { diff --git a/src/Reflect/Exception/UnreflectableException.php b/src/Reflect/Exception/UnreflectableException.php index 62f4aee..a0065e2 100644 --- a/src/Reflect/Exception/UnreflectableException.php +++ b/src/Reflect/Exception/UnreflectableException.php @@ -5,6 +5,7 @@ use Throwable; use VeeWee\Reflecta\Exception\RuntimeException; +use function sprintf; final class UnreflectableException extends RuntimeException {