-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
37 lines (29 loc) · 1.18 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
37 lines (29 loc) · 1.18 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
parameters:
level: 5
paths:
- src
excludePaths:
- src/Xdom.php
- tests/Integration/Fixtures/*
- tests/Integration/Bootstrap/*
# Ignore errors for external classes we don't control
ignoreErrors:
# MODX Revolution classes may not be available during analysis
- '#Access to an undefined property MODX\\Revolution\\modX::#'
- '#Call to an undefined method MODX\\Revolution\\modX::#'
- '#Parameter .* expects MODX\\Revolution\\modX, MODX\\Revolution\\modX\|null given#'
# Allow dynamic properties for now (can be addressed in future)
- '#Access to an undefined property MODX\\CLI\\Application::#'
# StreamingOutputTrait is optional helper and may not be used in code yet
- '#StreamingOutputTrait is used zero times#'
# Bootstrap file for MODX stubs if needed
# bootstrapFiles:
# - tests/bootstrap.php
# Report unknown classes
reportUnmatchedIgnoredErrors: false
# Check return types
# checkMissingReturnTypes: true
# Check parameter types
# checkMissingParameterTypes: false
# Treat PHPDoc as source of truth
treatPhpDocTypesAsCertain: false