-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
28 lines (27 loc) · 982 Bytes
/
phpstan.neon
File metadata and controls
28 lines (27 loc) · 982 Bytes
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
# Extensions are auto-loaded by phpstan/extension-installer:
# - phpstan/phpstan-strict-rules
# - phpstan/phpstan-deprecation-rules
parameters:
level: 5
parallel:
maximumNumberOfProcesses: 1
paths:
- upload
ignoreErrors:
# OpenCart magic properties
- '#Access to an undefined property#'
# Debug panel uses global variables
- '#global#'
# Mixed HTML/PHP file
- '#no value type specified in iterable type#'
# Strict rules exceptions for OpenCart
- '#Construct empty\(\) is not allowed#'
- '#Short ternary operator is not allowed#'
- '#Only booleans are allowed in#'
- '#Casting to string something that.s already string#'
# IS_DEBUG is a runtime constant defined in config.php
- '#Right side of && is always true#'
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- stubs/opencart_stubs.php
treatPhpDocTypesAsCertain: false