Skip to content

Commit

Permalink
Merge pull request #193 from srjlewis/5.x-php8.1
Browse files Browse the repository at this point in the history
Compatibility with PHP 8.1
  • Loading branch information
kenjis authored Nov 8, 2021
2 parents 5331eef + fcd128a commit 2c39cd2
Show file tree
Hide file tree
Showing 24 changed files with 316 additions and 307 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php-versions: ['8.1']
steps:
- name: Download standard files
uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
}
],
"require": {
"php": ">=5.6.0",
"psr/log": "^1.0"
"php": ">=8.1",
"psr/log": "^1.0 || ^2.0",
"ext-pdo": "*"
},
"autoload": {
"psr-4": {
Expand Down
23 changes: 12 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<phpunit bootstrap="./phpunit.php">
<testsuites>
<testsuite>
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./phpunit.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="unit">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
Loading

0 comments on commit 2c39cd2

Please sign in to comment.