forked from LycheeOrg/Lychee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
30 lines (30 loc) · 809 Bytes
/
phpstan.neon
File metadata and controls
30 lines (30 loc) · 809 Bytes
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
includes:
- vendor/larastan/larastan/extension.neon
- vendor/lychee-org/phpstan-lychee/phpstan.neon
- phpstan-baseline.neon
parameters:
level: 3
tips:
treatPhpDocTypesAsCertain: false
treatPhpDocTypesAsCertain: true
paths:
- app
- config
- lang
- database/migrations
- scripts
excludePaths:
- app/Services/Archives # This is creating errors depending if version 2.1 or 3.1 is installed...
stubFiles:
- phpstan/stubs/image.stub
- phpstan/stubs/imageexception.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.*#'
- '#.*stdClass>#'
- '#.*contravariant.*#'