diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54d12ff..507f898 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ 7.4, 8.0 ] + php: [ '7.4', '8.2', '8.3', '8.4', '8.5' ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: fetch-depth: 0 diff --git a/.gitignore b/.gitignore index c25d1dd..d81af83 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /composer.lock /node_modules/ /yarn.lock +/.phpunit.result.cache diff --git a/phpunit.xml b/phpunit.xml index 3d82334..b88555b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -5,7 +5,7 @@ colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" - convertWarningsToExceptions="true" + convertWarningsToExceptions="true" convertDeprecationsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="./vendor/autoload.php"> diff --git a/src/Validators/EnumValidator.php b/src/Validators/EnumValidator.php index ee1c4a9..47d84f2 100644 --- a/src/Validators/EnumValidator.php +++ b/src/Validators/EnumValidator.php @@ -75,7 +75,7 @@ protected function _doValidate($value): Generator $result = false; foreach($this->_getAllowedValues() as $allowedValue) { - if(strcasecmp($allowedValue, $value) == 0) + if(strcasecmp((string)$allowedValue, (string)$value) == 0) { $result = true; break;