Skip to content

Commit d033986

Browse files
committed
Fixed phpstan errors
1 parent 1f4c7e8 commit d033986

5 files changed

+15
-3
lines changed

phpstan.baseline.neon

+8-1
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

-1
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

+3
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

+3
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

+1-1
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)