Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit d1d7aa1

Browse files
authored
#255: Add Statamic 4 suppor (#256)
1 parent 20b6d4f commit d1d7aa1

4 files changed

Lines changed: 20 additions & 12 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.0']
11-
laravel: [8.*]
12-
dependency-version: [prefer-stable]
10+
php: ['8.0', '8.1']
11+
laravel: [9.*, 10.*]
12+
dependency-version: [prefer-lowest, prefer-stable]
1313
include:
14-
- laravel: 8.*
15-
testbench: 6.*
14+
- laravel: 9.*
15+
testbench: 7.*
16+
- laravel: 10.*
17+
testbench: 8.*
18+
exclude:
19+
- laravel: 10.*
20+
php: 8.0
1621
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
1722
steps:
1823
- name: Checkout code

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea
12
.phpunit.result.cache
23
composer.lock
34
clover.xml

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@
2222
"require": {
2323
"php": "^8.0",
2424
"ext-json": "*",
25-
"statamic/cms": "^3.2"
25+
"statamic/cms": "^4.1"
2626
},
2727
"require-dev": {
28-
"nunomaduro/larastan": "^0.7.12",
29-
"orchestra/testbench": "^6.21.0",
30-
"phpunit/phpunit": "^9.5",
31-
"spatie/ray": "^1.30"
28+
"nunomaduro/larastan": "^2.6",
29+
"orchestra/testbench": "^7.32 | ^8.12",
30+
"phpunit/phpunit": "^9.5"
3231
},
3332
"config": {
3433
"process-timeout": 0,
35-
"sort-packages": true
34+
"sort-packages": true,
35+
"allow-plugins": {
36+
"pixelfear/composer-dist-plugin": true
37+
}
3638
},
3739
"extra": {
3840
"laravel": {

src/Http/Controllers/MagicLinkController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function prepareUser(Request $request): ?\Statamic\Contracts\Auth\User
6363
*/
6464
if ($user === null) {
6565
if ($this->magicLinkRepository->validAddress($request->email)) {
66-
$user = (User::make())->email($request->email);
66+
$user = User::make()->email($request->email);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)