-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpstan.neon.dist
42 lines (41 loc) · 2.05 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
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
# Fortunately, You can ignore it by the following config.
#
parameters:
level: 3
parallel:
jobSize: 20
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: true
reportUnmatchedIgnoredErrors: false
paths:
- src
excludePaths:
- %currentWorkingDirectory%/src/helper/*
- %currentWorkingDirectory%/tests/*
- %currentWorkingDirectory%/src/*/publish/*
- %currentWorkingDirectory%/src/*/class_map/*
- %currentWorkingDirectory%/src/foundation/src/helpers.php
- %currentWorkingDirectory%/src/foundation/src/Testing/Concerns/*
- %currentWorkingDirectory%/src/foundation/src/Testing/Constraints/*
- %currentWorkingDirectory%/src/foundation/src/Http/WebsocketKernel.php
- %currentWorkingDirectory%/src/http/src/RequestMacro.php
- %currentWorkingDirectory%/src/log/src/Adapter/*
- %currentWorkingDirectory%/src/support/src/Js.php
- %currentWorkingDirectory%/src/notifications/src/DatabaseNotification.php
ignoreErrors:
- '#Result of method .* \(void\) is used\.#'
- '#Unsafe usage of new static#'
- '#Class [a-zA-Z0-9\\\\_]+ not found.#'
- '#Constant BASE_PATH not found.#'
- '#Call to an undefined static method SwooleTW\\Hyperf\\Support\\Facades\\#'
- '#Call to an undefined method Psr\\Container\\ContainerInterface::make\(\)#'
- message: '#Call to an undefined method SwooleTW\\Hyperf\\Foundation\\Testing\\TestCase::#'
path: src/foundation/src/Testing/TestCase.php
- '#Method Redis::eval\(\) invoked with [0-9] parameters, 1-3 required.#'
- '#Access to an undefined property SwooleTW\\Hyperf\\Queue\\Jobs\\DatabaseJobRecord::\$.*#'
- '#Access to an undefined property SwooleTW\\Hyperf\\Queue\\Contracts\\Job::\$.*#'
- '#Call to an undefined method Hyperf\\Database\\Query\\Builder::where[a-zA-Z0-9\\\\_]+#'
- '#Call to an undefined method Hyperf\\Database\\Query\\Builder::firstOrFail\(\)#'