-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpstan.neon.dist
43 lines (43 loc) · 1.51 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
includes:
# - vendor/phpstan/phpstan-deprecation-rules/rules.neon
- phpstan-baseline.neon
parameters:
level: 5
parallel:
jobSize: 20
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
excludePaths:
- 'src/*/output/*'
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
message: '#Undefined variable: \$this#'
paths:
- src/tinker/src/TinkerCaster.php
- tests/*.php
- '#Access to an undefined property FriendsOfHyperf\\Http\\Client\\Response::\$\w+\.#'
- '#Function GuzzleHttp\\Psr7\\get_message_body_summary not found.#'
- '#.*should either be compatible with ArrayAccess::offset\w+.*#'
- '#Unsafe usage of new static\(\)\.#'
- '#Constant BASE_PATH not found.#'
-
message: '#Variable \$\w+ might not be defined#'
paths:
- src/pretty-console/src/resources/views/components/*.php
-
message: '#Parameter \#2 \$mutators of method FriendsOfHyperf\\PrettyConsole\\View\\Components\\Component::mutate\(\) expects#'
paths:
- src/pretty-console/src/View/Components/*.php
-
message: '#Call to method \w+\(\) on an unknown class Elasticsearch\\Client.#'
paths:
- src/telescope-elasticsearch/*/*.php
-
message: '#Else branch is unreachable because ternary operator condition is always true.#'
paths:
- src/telescope-elasticsearch/*/*.php
-
message: '#.* has invalid return type Elasticsearch\\Client.#'
paths:
- src/telescope-elasticsearch/*/*.php