-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathphpstan.neon
More file actions
44 lines (32 loc) · 1.45 KB
/
phpstan.neon
File metadata and controls
44 lines (32 loc) · 1.45 KB
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
44
includes:
- vendor/contributte/phpstan/phpstan.neon
parameters:
level: 8
phpVersion: 80100
paths:
- src
- .docs
reportMaybesInPropertyPhpDocTypes: false
ignoreErrors:
# Missing strict comparison
- '#^Only booleans are allowed in#'
# Ignore bad php internal functions behavior
- message: '#^Method Apitte\\Core\\Annotation\\Controller\\OpenApi\:\:purifyDocblock\(\) should return string but returns string\|null\.$#'
path: %currentWorkingDirectory%/src/Core/Annotation/Controller/OpenApi.php
# Ignore unsage usage of new static()
- '#^Unsafe usage of new static\(\)\.$#'
# Allow empty()
- '#Construct empty\(\) is not allowed. Use more strict comparison.$#'
# ApiRoute optional flag
- '#Constructor of class Apitte\\Presenter\\ApiRoute has an unused parameter \$flags.$#'
# Ignore bad php behavior - should not happen
- message: '#\|false given\.$#'
path: %currentWorkingDirectory%/src/Debug/Tracy/BlueScreen/ValidationBlueScreen.php
# Ignore PHP soft-failing functions
- message: '#.+(int|string|string\>)\|false.+#'
path: %currentWorkingDirectory%/src/OpenApi/SchemaDefinition/Entity/EntityAdapter.php
# This should not happen because null is returned on error
- '#Method Apitte\\Core\\Utils\\Helpers::slashless\(\) should return string but returns string\|null\.#'
- message: "#^Dead catch - TypeError is never thrown in the try block.$#"
path: src/Core/Mapping/Parameter/DateTimeTypeMapper.php
count: 1