diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a709c44..bca7243 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,6 @@ jobs: strategy: matrix: php-version: - - 7.2 - 7.3 - 7.4 - 8.0 diff --git a/build.xml b/build.xml index 698824c..9da7f3a 100644 --- a/build.xml +++ b/build.xml @@ -9,7 +9,7 @@ - + diff --git a/composer.json b/composer.json index 3251382..d0e9e1e 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }, { "name": "Kohana World Team", - "email": "ga@koseven@ga" + "email": "ga@koseven.ga" } ], "autoload": { @@ -23,9 +23,9 @@ } }, "require": { - "php": "^7.2|^8.0" + "php": "^7.3|^8.0" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1c38cb5..c3e837e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,32 +1,30 @@ - - - - - ./tests/ - - - - - - - - - - - - - - - - src/ - - + bootstrap="vendor/autoload.php" verbose="true" + colors="true" timeoutForLargeTests="100" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + + + src/ + + + + + + + + + ./tests/ + + + + + + + + diff --git a/src/hmmmath/GreatestCommonDivisor/GreatestCommonDivisor.php b/src/hmmmath/GreatestCommonDivisor/GreatestCommonDivisor.php index 4b76c43..69f332d 100644 --- a/src/hmmmath/GreatestCommonDivisor/GreatestCommonDivisor.php +++ b/src/hmmmath/GreatestCommonDivisor/GreatestCommonDivisor.php @@ -31,7 +31,7 @@ public static function greatestCommonDivisor(array $numbers, string $mode = self do { $right = array_shift($numbers); - if (is_infinite($right)) { + if (is_infinite((float) $right)) { return INF; }