opencart/phpstan.neon

25 lines
1.0 KiB
Plaintext
Raw Normal View History

services:
-
class: \Tools\PHPStan\RegistryPropertyReflectionExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
2023-11-07 17:51:18 +01:00
parameters:
level: 6
2023-11-07 17:51:18 +01:00
paths:
- ./upload/
excludePaths:
2025-02-24 11:37:02 +01:00
- ./tools/phpstan/
2023-11-07 17:51:18 +01:00
- ./upload/system/storage/vendor/
2024-03-08 04:55:06 +01:00
- ./upload/system/storage/cache/
2023-12-22 11:11:35 +01:00
tmpDir: .cache
2024-01-04 21:00:00 +01:00
ignoreErrors:
2024-01-12 15:39:19 +01:00
- '#^Access to an undefined property Opencart\\System\\Engine\\Proxy<Opencart\\Catalog\\Model\\Checkout\\Cart>::\$getTotals\.$#'
- '# always exists and is not #'
- '#^Constant [A-Z_]+ not found\.$#'
- '#^Empty array passed to foreach\.$#'
- '# is always (true|false)\.$#'
2024-01-12 15:39:19 +01:00
- '#^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\.$#'
2024-01-12 15:39:19 +01:00
- '#^Variable \$\S+ might not be defined\.$#'