Skip to content

Commit c276d28

Browse files
committed
Support laravel 12
1 parent c92e342 commit c276d28

16 files changed

+27
-47
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717

1818
- name: Fix PHP code style issues
19-
uses: aglipanci/laravel-pint-action@2.4
19+
uses: aglipanci/laravel-pint-action@2.5
2020

2121
- name: Commit changes
2222
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.4'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.2, 8.1]
17-
laravel: [10.*]
16+
php: [8.4, 8.3]
17+
laravel: [12.*]
1818
stability: [prefer-stable]
1919
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
carbon: ^2.63
20+
- laravel: 12.*
21+
testbench: 10.*
2322

2423
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2524

@@ -31,7 +30,7 @@ jobs:
3130
uses: shivammathur/setup-php@v2
3231
with:
3332
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
33+
extensions: fileinfo, pdo, sqlite, pdo_sqlite
3534
coverage: none
3635

3736
- name: Setup problem matchers
@@ -41,7 +40,7 @@ jobs:
4140
4241
- name: Install dependencies
4342
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4544
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4645
4746
- name: List Installed Dependencies

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"require": {
88
"php": "^8.0",
99
"bacon/bacon-qr-code": "^2.0",
10-
"laravel/framework": "^9.0|^10.0|^11.0",
10+
"laravel/framework": "^9.0|^10.0|^11.0|^12.0",
1111
"pragmarx/google2fa": "^7.0|^8.0.1"
1212
},
1313
"require-dev": {
14-
"laravel/pint": "^1.6",
15-
"orchestra/testbench": "^8.0",
16-
"phpstan/phpstan": "^1.10",
17-
"phpunit/phpunit": "^10.0"
14+
"laravel/pint": "^1.21",
15+
"orchestra/testbench": "^10.0",
16+
"phpstan/phpstan": "^2.1.6",
17+
"phpunit/phpunit": "^11.5.9"
1818
},
1919
"autoload": {
2020
"psr-4": {

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ parameters:
77
- src
88
- tests
99
ignoreErrors:
10+
- identifier: missingType.iterableValue
1011
- '#Call to an undefined method Illuminate\\Contracts\\Auth\\StatefulGuard::getProvider\(\)#'
11-
checkMissingIterableValueType: false

src/Actions/ConfirmTwoFactorAuthentication.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class ConfirmTwoFactorAuthentication
1616
*
1717
* @return void
1818
*/
19-
public function __construct(protected TwoFactorProvider $provider)
20-
{
21-
}
19+
public function __construct(protected TwoFactorProvider $provider) {}
2220

2321
/**
2422
* Confirm the two-factor authentication configuration for the user.

src/Actions/EnableTwoFactorAuthentication.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class EnableTwoFactorAuthentication
1515
*
1616
* @return void
1717
*/
18-
public function __construct(protected TwoFactorProvider $provider)
19-
{
20-
}
18+
public function __construct(protected TwoFactorProvider $provider) {}
2119

2220
/**
2321
* Enable two-factor authentication for the user.

src/Events/RecoveryCodeReplaced.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ class RecoveryCodeReplaced
1414
* @param \App\Models\User $user
1515
* @return void
1616
*/
17-
public function __construct(public $user, public string $code)
18-
{
19-
}
17+
public function __construct(public $user, public string $code) {}
2018
}

src/Events/RecoveryCodesGenerated.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ class RecoveryCodesGenerated
1414
* @param \App\Models\User $user
1515
* @return void
1616
*/
17-
public function __construct(public $user)
18-
{
19-
}
17+
public function __construct(public $user) {}
2018
}

src/Events/TwoFactorAuthenticationEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ abstract class TwoFactorAuthenticationEvent
1414
* @param \App\Models\User $user
1515
* @return void
1616
*/
17-
public function __construct(public $user)
18-
{
19-
}
17+
public function __construct(public $user) {}
2018
}

0 commit comments

Comments
 (0)