forked from opencart/opencart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
23 lines (23 loc) · 846 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
services:
-
class: \Tools\PHPStan\RegistryPropertyReflectionExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
parameters:
level: 4
paths:
- ./upload/
excludePaths:
- ./system/storage/vendor/
- ./upload/system/storage/vendor/
tmpDir: .cache
ignoreErrors:
- '#^Access to an undefined property Opencart\\System\\Engine\\Proxy<Opencart\\Catalog\\Model\\Checkout\\Cart>::\$getTotals\.$#'
- '# always exists and is not #'
- '#^Call to an undefined method object::[a-zA-Z]+\(\)\.$#'
- '#^Constant [A-Z_]+ not found\.$#'
- '#^Empty array passed to foreach\.$#'
- '# is always false\.$#'
- '# is always true\.$#'
- '#^Method .* is unused\.$#'
- '#^Variable \$\S+ might not be defined\.$#'