Skip to content

Commit d6005ca

Browse files
authored
Merge pull request #22 from ukfast/set-php-version
Set package to use PHP 8 onwards
2 parents 6f6ec90 + 02962e3 commit d6005ca

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php: [8.1, 8.0, 7.4, 7.3, 7.2]
17+
php: [8.1, 8.0]
1818

1919
name: PHP${{ matrix.php }} - ubuntu-latest
2020

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"minimum-stability": "dev",
2323
"require": {
24+
"php": "^8.0|^8.1",
2425
"illuminate/database": "^6.0|^7.30.4|^8.0|^9.0",
2526
"illuminate/http": "^6.0|^7.0|^8.0|^9.0"
2627
},

phpunit.xml.dist

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
<phpunit
2-
bootstrap="./vendor/autoload.php"
3-
colors="true"
4-
verbose="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
>
9-
<testsuites>
10-
<testsuite name="Unit Tests">
11-
<directory suffix="Test.php">./tests</directory>
12-
</testsuite>
13-
</testsuites>
14-
15-
<filter>
16-
<whitelist processUncoveredFilesFromWhitelist="true">
17-
<directory suffix=".php">./src</directory>
18-
</whitelist>
19-
</filter>
1+
<?xml version="1.0"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Unit Tests">
10+
<directory suffix="Test.php">./tests</directory>
11+
</testsuite>
12+
</testsuites>
2013
</phpunit>

0 commit comments

Comments
 (0)