Skip to content

Commit 0544047

Browse files
authored
Add PHP 8 Support (#8)
1 parent 4f0cb7d commit 0544047

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

.github/workflows/psalm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
name: psalm
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v2
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
1919
php-version: '7.4'
20-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
20+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2121
coverage: none
2222

2323
- name: Cache composer dependencies
24-
uses: actions/cache@v1
24+
uses: actions/cache@v2
2525
with:
2626
path: vendor
2727
key: composer-${{ hashFiles('composer.lock') }}

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [7.4]
12+
php: [8.0, 7.4]
1313
laravel: [8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v1
23+
uses: actions/checkout@v2
2424

2525
- name: Cache dependencies
26-
uses: actions/cache@v1
26+
uses: actions/cache@v2
2727
with:
2828
path: ~/.composer/cache/files
2929
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-${{ matrix.dependency-version }}-composer-${{ hashFiles('composer.json') }}
@@ -34,7 +34,7 @@ jobs:
3434
uses: shivammathur/setup-php@v2
3535
with:
3636
php-version: ${{ matrix.php }}
37-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
37+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
3838
coverage: pcov
3939

4040
- name: Install dependencies

composer.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4",
22-
"fidum/laravel-dashboard-chart-tile": "^4.0",
23-
"illuminate/console": "^8.0",
24-
"illuminate/support": "^8.0",
25-
"laravel/vapor-cli": "^1.0",
21+
"php": "^7.4|^8.0",
22+
"fidum/laravel-dashboard-chart-tile": "^4.0.1",
23+
"laravel/vapor-cli": "^1.10.8",
2624
"spatie/laravel-dashboard": "^2.0"
2725
},
2826
"require-dev": {
29-
"nunomaduro/laravel-mojito": "^0.2.5",
27+
"mockery/mockery": "^1.4",
28+
"nunomaduro/laravel-mojito": "^0.2.6",
3029
"orchestra/testbench": "^6.0",
3130
"phpunit/phpunit": "^9.3",
32-
"psalm/plugin-laravel": "^1.4",
33-
"vimeo/psalm": "^4.0"
31+
"vimeo/psalm": "^4.3"
3432
},
3533
"autoload": {
3634
"psr-4": {

psalm.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<issueHandlers>
1919
</issueHandlers>
2020

21-
<plugins>
22-
<pluginClass class="Psalm\LaravelPlugin\Plugin"/>
23-
</plugins>
21+
<!-- <plugins>-->
22+
<!-- <pluginClass class="Psalm\LaravelPlugin\Plugin"/>-->
23+
<!-- </plugins>-->
2424
</psalm>

0 commit comments

Comments
 (0)