Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
141 lines (140 loc) · 4.08 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
141 lines (140 loc) · 4.08 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# PHPStan config for PHPStan 2.2
includes:
- dev/build/phpstan/phpstan-baseline.neon
parameters:
bootstrapFiles:
- dev/build/phpstan/bootstrap_action.php
#autoload_files:
# - dev/build/phpstan/bootstrap_action.php
phpVersion: 80200 # PHP 8.2
tmpDir: ./.github/tmp
parallel:
# Commented some of the settings, reminding the defaults:
# should adapt better to target machines
# jobSize: 8 # default is 20
processTimeout: 600.0
maximumNumberOfProcesses: 4 # default is 32
# minimumNumberOfJobsPerProcess: 2 # default is 2
# buffer: 134217728 # 128 MB # Not documented
customRulesetUsed: true
level: 10
fileExtensions:
- php
paths:
- htdocs
- scripts
excludePaths:
analyseAndScan:
- htdocs/custom/*
- htdocs/documents/*
- htdocs/install/* # We must exclude this dir to avoid to have DOL_DOCUMENT_ROOT defined to .. by inc.php before the bootstrap*.php file can load it.
- htdocs/install/doctemplates/*
- htdocs/langs/*
- htdocs/modulebuilder/template/test/*
- test/phpunit/*
analyse:
- htdocs/includes/geoPHP/*
- htdocs/includes/markrogoyski/*
- htdocs/includes/maximebf/*
- htdocs/includes/mike42/*
- htdocs/includes/mobiledetect/*
- htdocs/includes/nusoap/*
- htdocs/includes/OAuth/*
- htdocs/includes/odtphp/*
- htdocs/includes/parsedown/*
- htdocs/includes/php-iban/*
- htdocs/includes/phpoffice/*
- htdocs/includes/printipp/*
- htdocs/includes/Psr/*
- htdocs/includes/restler/*
- htdocs/includes/sabre/*
- htdocs/includes/stripe/*
- htdocs/includes/swiftmailer/*
- htdocs/includes/symfony/*
- htdocs/includes/tcpdi/*
- htdocs/includes/tecnickcom/*
- htdocs/includes/webklex/*
- htdocs/core/class/lessc.class.php
# checkAlwaysTrueCheckTypeFunctionCall: false
# checkAlwaysTrueInstanceof: false
# checkAlwaysTrueStrictComparison: false
polluteScopeWithLoopInitialAssignments: false
polluteScopeWithAlwaysIterableForeach: false
checkClassCaseSensitivity: true
checkFunctionArgumentTypes: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
checkArgumentsPassedByReference: true
checkMaybeUndefinedVariables: true
checkNullables: false
checkThisOnly: true
checkUnionTypes: false
checkExplicitMixedMissingReturn: true
reportMaybes: false
reportMaybesInMethodSignatures: false
reportStaticMethodSignatures: false
reportMagicMethods: false
reportMagicProperties: false
treatPhpDocTypesAsCertain: false
# if you want to exclude something, generate the baseline to do that, add here give only pattern that does not give the opportunity to introduce new errors
# or pattern to avoid false positive of some bugged or allowed phpstan checks
ignoreErrors:
- '#.*phan-var#'
- '#^Expression "''…" on a separate line does not do anything#'
- '#Empty array passed to foreach#'
- '#Unable to resolve the template type T#'
- '#Call to function .* will always evaluate to#'
- '#in empty\(\) always exists and is always falsy#'
- '#in empty\(\) always exists and is not falsy#'
- '#in empty\(\) is not falsy#'
- '#in isset\(\) is not nullable#'
- '#is always#'
- '#Function json_encode invoked with 2 parameters, 1 required#'
- '#Loose comparison using#'
internalErrorsCountLimit: 50
cache:
# nodesByFileCountMax: 512
nodesByStringCountMax: 512
reportUnmatchedIgnoredErrors: false
universalObjectCratesClasses:
- stdClass
- SimpleXMLElement
earlyTerminatingMethodCalls: []
dynamicConstantNames:
- ICONV_IMPL
- PHP_VERSION
- PHP_MAJOR_VERSION
- PHP_MINOR_VERSION
- PHP_RELEASE_VERSION
- PHP_VERSION_ID
- PHP_EXTRA_VERSION
- PHP_ZTS
- PHP_DEBUG
- PHP_MAXPATHLEN
- PHP_OS
- PHP_OS_FAMILY
- PHP_SAPI
- PHP_EOL
- PHP_INT_MAX
- PHP_INT_MIN
- PHP_INT_SIZE
- PHP_FLOAT_DIG
- PHP_FLOAT_EPSILON
- PHP_FLOAT_MIN
- PHP_FLOAT_MAX
- DEFAULT_INCLUDE_PATH
- PEAR_INSTALL_DIR
- PEAR_EXTENSION_DIR
- PHP_EXTENSION_DIR
- PHP_PREFIX
- PHP_BINDIR
- PHP_BINARY
- PHP_MANDIR
- PHP_LIBDIR
- PHP_DATADIR
- PHP_SYSCONFDIR
- PHP_LOCALSTATEDIR
- PHP_CONFIG_FILE_PATH
- PHP_CONFIG_FILE_SCAN_DIR
- PHP_SHLIB_SUFFIX
- PHP_FD_SETSIZE