Skip to content

Commit 89f2602

Browse files
authored
Merge pull request #64 from clue-labs/update-tests
Test on PHP 8.2 and update test environment
2 parents 83692d9 + dc54a5b commit 89f2602

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ jobs:
1111
strategy:
1212
matrix:
1313
os:
14-
- ubuntu-20.04
15-
- windows-2019
14+
- ubuntu-22.04
15+
- windows-2022
1616
php:
17+
- 8.2
1718
- 8.1
1819
- 8.0
1920
- 7.4

phpunit.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
77
colors="true"
8-
cacheResult="false">
8+
cacheResult="false"
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="SQLite React Test Suite">
1112
<directory>./tests/</directory>
@@ -17,4 +18,7 @@
1718
<directory>./src/</directory>
1819
</include>
1920
</coverage>
21+
<php>
22+
<ini name="error_reporting" value="-1" />
23+
</php>
2024
</phpunit>

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ private function php()
433433

434434
// if `php` is a symlink to the php binary, use the shorter `php` name
435435
// this is purely cosmetic feature for the process list
436-
if ($binary !== 'php' && \realpath($this->which('php')) === $binary) {
436+
if ($binary !== 'php' && \realpath((string) $this->which('php')) === $binary) {
437437
$binary = 'php';
438438
}
439439

0 commit comments

Comments
 (0)