forked from mineadmin/components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
32 lines (32 loc) · 1.36 KB
/
phpstan.neon
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
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
# Fortunately, You can ingore it by the following config.
#
# vendor/bin/phpstan analyse app --memory-limit 200M -l 0
#
parameters:
reportUnmatchedIgnoredErrors: false
excludePaths:
- src/mine/src/Redis/MineLockRedis.php
- src/mine/src/MineStart.php
- src/mine/src/Listener/DbQueryExecutedListener.php
- src/mine/src/Helper/functions.php
- src/mine/src/Helper/Str.php
- src/mine/src/Helper/Ip2region.php
- src/gateway/*
- src/next-core-x/tests/*
- src/mine-core/tests/*
- src/tests/
- src/AppStore/test/
- src/httpServer/tests/
- src/SecurityAccess/tests/
ignoreErrors:
- '#Unsafe usage of new static\(\)#'
- '#Call to static method find\(\) on an unknown class#'
- '#Access to constant ALL_SCOPE on an unknown class#'
- '#Access to constant CUSTOM_SCOPE on an unknown class#'
- '#Access to constant SELF_DEPT_SCOPE on an unknown class#'
- '#Access to constant DEPT_BELOW_SCOPE on an unknown class#'
- '#Call to static method query\(\) on an unknown class#'
- '#Access to constant DEPT_BELOW_SCOPE_BY_TABLE_DEPTID on an unknown class#'
- '#Class .* not found#'
- '#Access to constant SELF_SCOPE on an unknown class#'