Skip to content

Commit 417a974

Browse files
[4.x] PHP 8 Support (#168)
* PHP 8 Support * Update CI * Remove filter for phpunit * Dump error output * Disable linux builds * dump error output * Enable stderr capture * Update tests.yml * Revert stderr output * add fileinfo to make league/flysystem happy * Re-enable all builds * Add ext-fileinfo to dependencies Co-authored-by: Adrian <[email protected]>
1 parent 7274bd3 commit 417a974

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.3, 7.4]
16+
php: [7.3, 7.4, 8.0]
1717

1818
name: PHP ${{ matrix.php }}
1919

@@ -25,7 +25,7 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip
28+
extensions: dom, curl, libxml, mbstring, zip, fileinfo
2929
tools: composer:v2
3030
coverage: none
3131

@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
fail-fast: true
4343
matrix:
44-
php: [7.3, 7.4]
44+
php: [7.3, 7.4, 8.0]
4545

4646
name: PHP ${{ matrix.php }} - Windows
4747

@@ -58,7 +58,7 @@ jobs:
5858
uses: shivammathur/setup-php@v2
5959
with:
6060
php-version: ${{ matrix.php }}
61-
extensions: dom, curl, libxml, mbstring, zip
61+
extensions: dom, curl, libxml, mbstring, zip, fileinfo
6262
tools: composer:v2
6363
coverage: none
6464
ini-values: memory_limit=512M

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3",
13+
"php": "^7.3|^8.0",
14+
"ext-fileinfo": "*",
1415
"symfony/console": "^4.0|^5.0",
1516
"symfony/process": "^4.2|^5.0"
1617
},
1718
"require-dev": {
18-
"phpunit/phpunit": "^8.0"
19+
"phpunit/phpunit": "^8.0|^9.3"
1920
},
2021
"bin": [
2122
"bin/laravel"

phpunit.xml.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,4 @@
1818
<exclude>./tests/scaffolds</exclude>
1919
</testsuite>
2020
</testsuites>
21-
<filter>
22-
<whitelist processUncoveredFilesFromWhitelist="true">
23-
<directory suffix=".php">./src</directory>
24-
</whitelist>
25-
</filter>
2621
</phpunit>

0 commit comments

Comments
 (0)