forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
54 lines (54 loc) · 1.59 KB
/
phpstan.neon.dist
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
parameters:
level: 5
bootstrapFiles:
- .github/workflows/phpstan/autoload.php
paths:
- admin-dev
- app
- bin
- cache
- classes
- config
- controllers
- docs
- download
- img
- install-dev
- js
- localization
- mails
# - modules
- override
- pdf
- src
- tests
- tests-legacy
- themes
- tools
- translations
- upload
- webservice
excludePaths:
- admin-dev/filemanager
- admin-dev/themes
- classes/lang/KeysReference
- install-dev/theme/views
- install-dev/theme/config.php
- tests/Resources
- tests/Unit/Core/Foundation/IoC/Fixtures
ignoreErrors:
- '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:#'
- '#^Unsafe usage of new static\(\)\.$#'
- '#^Constructor of class PrestaShopBundle\\Service\\DataProvider\\Marketplace\\ApiClient has an unused parameter \$toolsAdapter\.$#'
- '#constructor expects Symfony\\Contracts\\Translation\\TranslatorInterface\|null, Symfony\\Component\\Translation\\TranslatorInterface given\.$#'
- '#^Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface\:\:dispatch\(\) invoked with 2 parameters, 1 required\.$#'
- '~^Access to an undefined property PrestaShop\\PrestaShop\\Core\\Addon\\Module\\ModuleInterface::\$(attributes|disk|database)\.$~'
## Smarty functions
- '#^Function smartyRegisterFunction not found\.$#'
reportUnmatchedIgnoredErrors: false
universalObjectCratesClasses:
- Cookie
- ObjectModel
- Order
- OrderInvoice
- Product