Skip to content

Commit 7fb7ddd

Browse files
authored
Merge pull request #63 from laravel-shift/l12-compatibility
Laravel 12.x Compatibility
2 parents 15be0d5 + 296fe79 commit 7fb7ddd

File tree

7 files changed

+31
-15
lines changed

7 files changed

+31
-15
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: tests
33
on:
44
push:
55
branches:
6-
- 'v1'
7-
- 'v2'
8-
- 'v3'
6+
- v1
7+
- v2
8+
- v3
99
pull_request:
1010
branches:
1111
- '*'
@@ -20,18 +20,22 @@ jobs:
2020
strategy:
2121
fail-fast: true
2222
matrix:
23-
os: [ubuntu-latest, windows-latest]
24-
php: [8.1, 8.2, 8.3]
25-
laravel: ['10.*', '11.*']
26-
stability: [prefer-lowest, prefer-stable]
23+
os: [ ubuntu-latest, windows-latest ]
24+
php: [ 8.1, 8.2, 8.3 ]
25+
laravel: [ '10.*', '11.*', '12.*' ]
26+
stability: [ prefer-lowest, prefer-stable ]
2727
include:
2828
- laravel: 10.*
2929
testbench: 8.*
3030
- laravel: 11.*
3131
testbench: 9.*
32+
- laravel: 12.*
33+
testbench: 10.*
3234
exclude:
3335
- laravel: 11.*
3436
php: 8.1
37+
- laravel: 12.*
38+
php: 8.1
3539

3640
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3741

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
"homepage": "https://github.com/saloonphp/laravel-plugin",
2121
"require": {
2222
"php": "^8.1",
23-
"illuminate/console": "^10.0 || ^11.0",
24-
"illuminate/support": "^10.0 || ^11.0",
23+
"illuminate/console": "^10.0 || ^11.0 || ^12.0",
24+
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
2525
"saloonphp/saloon": "^3.5",
2626
"symfony/finder": "^6.4 || ^7.0"
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.48",
30-
"orchestra/testbench": "^8.21 || ^9.0",
31-
"pestphp/pest": "^2.32",
32-
"phpstan/phpstan": "^1.10.56"
30+
"orchestra/testbench": "^8.21 || ^9.0 || ^10.0",
31+
"pestphp/pest": "^2.32 || ^3.7",
32+
"phpstan/phpstan": "^1.10.56 || ^2.1"
3333
},
3434
"minimum-stability": "stable",
3535
"prefer-stable": true,

phpstan.baseline.neon

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^PHPDoc tag \\@mixin contains invalid type Saloon\\\\Laravel\\\\Traits\\\\HasDeprecatedFacadeMethods.$#"
4+
message: '#^PHPDoc tag @mixin contains invalid type Saloon\\Laravel\\Traits\\HasDeprecatedFacadeMethods\.$#'
5+
identifier: mixin.trait
56
count: 1
67
path: src/Facades/Saloon.php
8+
9+
-
10+
message: '#^Trait Saloon\\Laravel\\Traits\\HasDeprecatedFacadeMethods is used zero times and is not analysed\.$#'
11+
identifier: trait.unused
12+
count: 1
13+
path: src/Traits/HasDeprecatedFacadeMethods.php

phpstan.dist.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ parameters:
1212
#editorUrl: 'vscode://file/%%file%%:%%line%%'
1313

1414
level: 7
15-
checkGenericClassInNonGenericObjectType: false
1615

1716
paths:
1817
- src

src/Casts/EncryptedOAuthAuthenticatorCast.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Saloon\Contracts\OAuthAuthenticator;
99
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
1010

11+
/**
12+
* @implements CastsAttributes<OAuthAuthenticator|null, OAuthAuthenticator|string|null>
13+
*/
1114
class EncryptedOAuthAuthenticatorCast implements CastsAttributes
1215
{
1316
/**

src/Casts/OAuthAuthenticatorCast.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Saloon\Contracts\OAuthAuthenticator;
99
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
1010

11+
/**
12+
* @implements CastsAttributes<OAuthAuthenticator|null, OAuthAuthenticator|string|null>
13+
*/
1114
class OAuthAuthenticatorCast implements CastsAttributes
1215
{
1316
/**

src/Facades/Saloon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @mixin \Saloon\Laravel\Traits\HasDeprecatedFacadeMethods
1414
*
15-
* @method static MockClient fake(array $responses) Alias of MockClient::global()
15+
* @method static MockClient fake(array<mixed> $responses) Alias of MockClient::global()
1616
* @method static MockClient mockClient() Alias of MockClient::global()
1717
* @method static void assertSent(string|callable $value)
1818
* @method static void assertNotSent(string|callable $value)

0 commit comments

Comments
 (0)