Skip to content

Commit

Permalink
Add configuration for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaudo committed Oct 15, 2023
1 parent 6a4ef26 commit 252a5ee
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
php:
- '8.1'
- '8.2'
- '8.3'
dependencies:
- 'lowest'
- 'highest'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<psalm
errorLevel="1"
phpVersion="8.1"
findUnusedBaselineEntry="true"
findUnusedCode="true"
findUnusedVariablesAndParams="true"
resolveFromConfigFile="true"
strictBinaryOperands="true"
Expand All @@ -16,4 +18,11 @@
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<UnusedClass>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</UnusedClass>
</issueHandlers>
</psalm>
2 changes: 2 additions & 0 deletions src/Interfaces/Resultlike.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 252a5ee

Please sign in to comment.