diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6355356..9cb2ffd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,10 @@ jobs: strategy: matrix: os: - - ubuntu-20.04 - - windows-2019 + - ubuntu-22.04 + - windows-2022 php: + - 8.2 - 8.1 - 8.0 - 7.4 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1b8eb6a..93827ff 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,7 +5,8 @@ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" - cacheResult="false"> + cacheResult="false" + convertDeprecationsToExceptions="true"> ./tests/ @@ -17,4 +18,7 @@ ./src/ + + + diff --git a/src/Factory.php b/src/Factory.php index 5710522..655e2bb 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -433,7 +433,7 @@ private function php() // if `php` is a symlink to the php binary, use the shorter `php` name // this is purely cosmetic feature for the process list - if ($binary !== 'php' && \realpath($this->which('php')) === $binary) { + if ($binary !== 'php' && \realpath((string) $this->which('php')) === $binary) { $binary = 'php'; }