-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathphpstan.neon.dist
35 lines (35 loc) · 1017 Bytes
/
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
parameters:
level: 8
paths:
- index.php
- core
- ext
- tests
- themes
typeAliases:
tag-string: non-empty-string
hash-string: non-empty-string&internal-hash-string
query-array: "array<string,string|string[]>"
header-array: "array<string,string|string[]>"
ignoreErrors:
-
message: '#Function .* is unsafe to use.*$#'
-
message: '#Path in include_once\(\) "data/.*" is not a file or it does not exist.#'
reportMaybesInMethodSignatures: false
reportMaybesInPropertyPhpDocTypes: false
strictRules:
disallowedLooseComparison: false
booleansInConditions: false
disallowedEmpty: false
disallowedShortTernary: false
strictFunctionCalls: false
noVariableVariables: false
includes:
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
services:
-
class: Shimmie2\GenericStringTypeNodeResolverExtension
tags:
- phpstan.phpDoc.typeNodeResolverExtension