forked from opencart/opencart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
25 lines (25 loc) · 1.08 KB
/
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
24
25
services:
-
class: \Tools\PHPStan\RegistryPropertyReflectionExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
parameters:
level: 6
paths:
- ./upload/
excludePaths:
- ./system/storage/vendor/
- ./upload/system/storage/vendor/
- ./upload/system/storage/cache/
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 (true|false)\.$#'
- '#^Method .* is unused\.$#'
- '#^Parameter \#2 \$value of method Opencart\\Admin\\Model\\Design\\SeoUrl::\S+\(\) expects string, int given\.$#'
- '#^Parameter \#\d+ \$\S+ of function \S+ expects .*(int|float|string).*, .*(int|float|string).* given\.$#'
- '#^Variable \$\S+ might not be defined\.$#'