From 252a5eec17d9137b18da9051def37fbd50f0cdd8 Mon Sep 17 00:00:00 2001 From: Samuel Maudo Date: Sun, 15 Oct 2023 21:56:15 +0200 Subject: [PATCH] Add configuration for PHP 8.3 --- .github/workflows/unit-tests.yml | 1 + README.md | 2 +- composer.json | 2 +- psalm.xml | 9 +++++++++ src/Interfaces/Resultlike.php | 2 ++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f449aa5..9cb82c4 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,6 +12,7 @@ jobs: php: - '8.1' - '8.2' + - '8.3' dependencies: - 'lowest' - 'highest' diff --git a/README.md b/README.md index fb7e024..56d9895 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Results [![Packagist][packagist-version-badge]][packagist-url] [![License][license-badge]][license-url] -[php-badge]: https://img.shields.io/badge/php-8.1%20to%208.2-777bb3.svg +[php-badge]: https://img.shields.io/badge/php-8.1%20to%208.3-777bb3.svg [php-url]: https://coveralls.io/github/hereldar/php-results [codecov-badge]: https://img.shields.io/codecov/c/github/hereldar/php-results [codecov-url]: https://app.codecov.io/gh/hereldar/php-results diff --git a/composer.json b/composer.json index e0a68c9..64d810e 100755 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": "^8.1.17|^8.2.4" + "php": "^8.1.17|^8.2.4|^8.3.0" }, "require-dev": { "fakerphp/faker": "^1.21", diff --git a/psalm.xml b/psalm.xml index 7cd3e3b..5ecc18d 100644 --- a/psalm.xml +++ b/psalm.xml @@ -2,6 +2,8 @@ + + + + + + + diff --git a/src/Interfaces/Resultlike.php b/src/Interfaces/Resultlike.php index fa9d728..c5c343b 100755 --- a/src/Interfaces/Resultlike.php +++ b/src/Interfaces/Resultlike.php @@ -91,6 +91,8 @@ public function or(mixed $value): mixed; /** * Terminates execution of the script if the result is an error. * Otherwise, returns the success value. + * + * @psalm-suppress PossiblyUnusedMethod */ public function orDie(int|string $status = null): mixed;