-
Notifications
You must be signed in to change notification settings - Fork 74
/
phpstan.neon.dist
54 lines (49 loc) · 2.68 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: max
paths:
- src
excludePaths:
- src/Utility/Assert.php
ignoreErrors:
- '#Cannot call method createRequest\(\) on Psr\\Http\\Message\\RequestFactoryInterface\|null.#'
- '#Cannot call method sendRequest\(\) on Psr\\Http\\Client\\ClientInterface\|null.#'
- '#Cannot call method get\(\) on Auth0\\SDK\\Contract\\StoreInterface\|null.#'
- '#Cannot call method set\(\) on Auth0\\SDK\\Contract\\StoreInterface\|null.#'
- '#Cannot call method defer\(\) on Auth0\\SDK\\Contract\\StoreInterface\|null.#'
- '#Cannot call method purge\(\) on Auth0\\SDK\\Contract\\StoreInterface\|null.#'
- '#Casting to string something that(.*) already string.#'
- '#\$object_or_class of function method_exists expects object\|string, (.*) given.#'
- '#Property (.*) is never read, only written.#'
- '#Constructor of class (.*) has an unused parameter (.*).#'
- '#Call to function is_string\(\) with string will always evaluate to true.$#'
-
message: '#Parameter \#3 \$(.*) of function openssl_verify expects (.*), (.*) given.#'
path: src\Token\Verifier.php
-
message: '#Method Auth0\\SDK\\Token\\Verifier::getKey\(\) never returns resource so it can be removed from the return type.#'
path: src\Token\Verifier.php
-
message: '#\$(.*) of function openssl_free_key expects (.*), mixed given.#'
path: src\Token\Verifier.php
-
message: '#Class OpenSSLAsymmetricKey not found.#'
path: src\Token\Verifier.php
-
message: '#Method Auth0\\SDK\\Token\\Verifier::getKey\(\) never returns (.*) so it can be removed from the return typehint.#'
path: src\Token\Verifier.php
-
message: '#Method Auth0\\SDK\\Token\\Verifier::getKey\(\) has invalid return type OpenSSLAsymmetricKey.#'
path: src\Token\Verifier.php
-
message: '#Method Auth0\\SDK\\Token\\Verifier::getKey\(\) never returns OpenSSLAsymmetricKey so it can be removed from the return type.#'
path: src\Token\Verifier.php
-
message: '#Return typehint of method Auth0\\SDK\\Token\\Verifier::getKey\(\) has invalid type OpenSSLAsymmetricKey.#'
path: src\Token\Verifier.php
-
message: '#Parameter \#1 \$object of function method_exists expects object\|string, Psr\\Http\\Client\\ClientInterface\|null given.#'
path: src\Utility\HttpRequest.php
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false