File tree Expand file tree Collapse file tree 7 files changed +31
-15
lines changed Expand file tree Collapse file tree 7 files changed +31
-15
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: tests
3
3
on :
4
4
push :
5
5
branches :
6
- - ' v1 '
7
- - ' v2 '
8
- - ' v3 '
6
+ - v1
7
+ - v2
8
+ - v3
9
9
pull_request :
10
10
branches :
11
11
- ' *'
@@ -20,18 +20,22 @@ jobs:
20
20
strategy :
21
21
fail-fast : true
22
22
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 ]
27
27
include :
28
28
- laravel : 10.*
29
29
testbench : 8.*
30
30
- laravel : 11.*
31
31
testbench : 9.*
32
+ - laravel : 12.*
33
+ testbench : 10.*
32
34
exclude :
33
35
- laravel : 11.*
34
36
php : 8.1
37
+ - laravel : 12.*
38
+ php : 8.1
35
39
36
40
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
37
41
Original file line number Diff line number Diff line change 20
20
"homepage" : " https://github.com/saloonphp/laravel-plugin" ,
21
21
"require" : {
22
22
"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 " ,
25
25
"saloonphp/saloon" : " ^3.5" ,
26
26
"symfony/finder" : " ^6.4 || ^7.0"
27
27
},
28
28
"require-dev" : {
29
29
"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 "
33
33
},
34
34
"minimum-stability" : " stable" ,
35
35
"prefer-stable" : true ,
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
3
-
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
5
6
count : 1
6
7
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
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ parameters:
12
12
# editorUrl: 'vscode://file/%%file%%:%%line%%'
13
13
14
14
level : 7
15
- checkGenericClassInNonGenericObjectType : false
16
15
17
16
paths :
18
17
- src
Original file line number Diff line number Diff line change 8
8
use Saloon \Contracts \OAuthAuthenticator ;
9
9
use Illuminate \Contracts \Database \Eloquent \CastsAttributes ;
10
10
11
+ /**
12
+ * @implements CastsAttributes<OAuthAuthenticator|null, OAuthAuthenticator|string|null>
13
+ */
11
14
class EncryptedOAuthAuthenticatorCast implements CastsAttributes
12
15
{
13
16
/**
Original file line number Diff line number Diff line change 8
8
use Saloon \Contracts \OAuthAuthenticator ;
9
9
use Illuminate \Contracts \Database \Eloquent \CastsAttributes ;
10
10
11
+ /**
12
+ * @implements CastsAttributes<OAuthAuthenticator|null, OAuthAuthenticator|string|null>
13
+ */
11
14
class OAuthAuthenticatorCast implements CastsAttributes
12
15
{
13
16
/**
Original file line number Diff line number Diff line change 12
12
*
13
13
* @mixin \Saloon\Laravel\Traits\HasDeprecatedFacadeMethods
14
14
*
15
- * @method static MockClient fake(array $responses) Alias of MockClient::global()
15
+ * @method static MockClient fake(array<mixed> $responses) Alias of MockClient::global()
16
16
* @method static MockClient mockClient() Alias of MockClient::global()
17
17
* @method static void assertSent(string|callable $value)
18
18
* @method static void assertNotSent(string|callable $value)
You can’t perform that action at this time.
0 commit comments