-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
31 lines (31 loc) · 1 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
# 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
ignoreErrors:
# - '#Unsafe usage of new static\(\)#'
-
message: '#Undefined variable: \$this#'
paths:
- src/collection.php
- src/stringable.php
-
message: '#Calling static::\w+\(\) outside of class scope#'
path: src/collection.php
-
message: '#Using static outside of class scope#'
paths:
- src/collection.php
- src/stringable.php
-
message: '#Call to an undefined static method Hyperf\\Utils\\Arr::hasMacro\(\).#'
path: src/arr.php
-
message: '#Call to an undefined static method Hyperf\\Utils\\Arr::macro\(\).#'
path: src/arr.php
-
message: '#Accessing static::\$\w+Cache outside of class scope.#'
path: src/str.php