Skip to content

Commit 0caded2

Browse files
authored
Update for php8 (#649)
1 parent 25ab940 commit 0caded2

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

.github/workflows/run-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
php: [7.4, 7.3, 7.2]
22+
php: [8.0, 7.4, 7.3]
2323
dependency-version: [prefer-lowest, prefer-stable]
2424

2525
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
php-version: ${{ matrix.php }}
3535
coverage: none
36-
tools: composer
36+
tools: composer:v2
3737

3838
- name: Install dependencies
3939
run: |

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.2|^8.0",
25-
"omnipay/common": "^3",
24+
"php": "^7.3|^8.0",
25+
"omnipay/common": "^3.1",
2626
"php-http/discovery": "^1.12",
2727
"php-http/guzzle7-adapter": "^0.1"
2828
},
@@ -34,7 +34,7 @@
3434
},
3535
"extra": {
3636
"branch-alias": {
37-
"dev-master": "3.1.x-dev"
37+
"dev-master": "3.2.x-dev"
3838
}
3939
},
4040
"scripts": {

phpunit.xml.dist

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
34
backupStaticAttributes="false"
45
bootstrap="vendor/autoload.php"
56
colors="true"
@@ -8,15 +9,15 @@
89
convertWarningsToExceptions="true"
910
processIsolation="false"
1011
stopOnFailure="false"
11-
syntaxCheck="false">
12-
<testsuites>
13-
<testsuite name="Omnipay Test Suite">
14-
<directory>./tests/</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory>./src</directory>
20-
</whitelist>
21-
</filter>
22-
</phpunit>
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13+
<coverage>
14+
<include>
15+
<directory>./src</directory>
16+
</include>
17+
</coverage>
18+
<testsuites>
19+
<testsuite name="Omnipay Test Suite">
20+
<directory>./tests/</directory>
21+
</testsuite>
22+
</testsuites>
23+
</phpunit>

tests/OmnipayTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class OmnipayTest extends TestCase
99
{
10-
public function tearDown()
10+
public function tearDown(): void
1111
{
1212
Omnipay::setFactory(null);
1313

0 commit comments

Comments
 (0)