-
-
Notifications
You must be signed in to change notification settings - Fork 374
Expand file tree
/
Copy pathphpstan.neon
More file actions
45 lines (44 loc) · 1.57 KB
/
Copy pathphpstan.neon
File metadata and controls
45 lines (44 loc) · 1.57 KB
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
includes:
- vendor/larastan/larastan/extension.neon
- vendor/lychee-org/phpstan-lychee/phpstan.neon
- vendor/lychee-org/phpstan-sensitive-parameter-values/extension.neon
- phpstan-baseline.neon
parameters:
level: 3
tips:
treatPhpDocTypesAsCertain: false
treatPhpDocTypesAsCertain: true
checkOctaneCompatibility: true
sensitiveParameter:
keywords: ['apiKey', 'auth', 'bearer', 'card', 'ccv', 'credential', 'credit', 'csrf', 'cvv', 'hash', 'nonce', 'otp', 'passcode', 'password', 'private', 'salt', 'secret', 'signature', 'ssn']
paths:
- app
- config
- lang
- database/factories
- database/migrations
- scripts
excludePaths:
- app/Services/Archives # This is creating errors depending if version 2.1 or 3.1 is installed...
stubFiles:
- phpstan/stubs/imageexception.stub
- phpstan/stubs/image.stub
ignoreErrors:
-
message: '#Cast to bool is forbidden.#'
paths:
- config
- '#Dynamic call to static method Illuminate\\.*#'
- '#Dynamic call to static method App\\Models\\Builders.*#'
- '#Dynamic call to static method App\\Eloquent\\FixedQueryBuilder.*#'
- '#Call to an undefined method Illuminate\\Database\\Schema\\ForeignKeyDefinition::after\(\).#'
- '#.*stdClass>#'
- '#.*contravariant.*#'
-
message: '#Dynamic call to static method App\\Http\\Requests\\.*::verify\(\)\.#'
-
message: '#Dynamic call to static method App\\Http\\Requests\\.*::configs\(\)\.#'
-
message: '#Parameter \$authed_user_id in App\\Actions\\Oauth\\Oauth::saveOauth#'
-
message: '#Parameter \$authors in App\\Http\\Controllers\\Gallery\\EmbedController#'