forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
70 lines (66 loc) · 2.3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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
- 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
services:
strictTypesForNewClassesRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/strict-types-for-new-classes-rule-exclusion-list.php
returnTypesForNewMethodsRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/return-types-for-new-class-methods-rule-exclusion-list.php
typeHintsForNewMethodsRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/type-hint-for-new-class-methods-rule-exclusion-list.php