forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon.dist
85 lines (85 loc) · 2.56 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
includes:
- phpstan-baseline.neon
- phpstan-disallowed-calls.neon
- phpstan-tmp-legacy-layout-baseline.neon
parameters:
phpVersion: 80100
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
- */node_modules/*
ignoreErrors:
- '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:#'
- '#^Unsafe usage of new static\(\)\.$#'
- '#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\\Module\\ModuleInterface::\$(attributes|disk|database)\.$~'
- message: "#^Dead catch \\- Symfony\\\\Component\\\\HttpFoundation\\\\File\\\\Exception\\\\FileNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/PrestaShopBundle/Controller/Admin/SecuredFileReaderController.php
## Smarty functions
- '#^Function smartyRegisterFunction not found\.$#'
## CQRS API Platform operations
-
message: '#Constructor of class [a-zA-Z0-9\\_]+ has an unused parameter \$[a-zA-Z0-9_]+.$#'
path: src/PrestaShopBundle/ApiPlatform/Metadata/
reportUnmatchedIgnoredErrors: false
universalObjectCratesClasses:
- Cookie
- ObjectModel
- Order
- OrderInvoice
- Product
dynamicConstantNames:
- _DB_PREFIX_
- _PS_CREATION_DATE_
- _PS_DEBUG_PROFILING_
- _PS_DEBUG_SQL_
- _PS_DISPLAY_COMPATIBILITY_WARNING_
- _PS_IN_TEST_
- _PS_INSTALL_MINIMUM_PHP_VERSION_ID_
- _PS_INSTALL_MAXIMUM_PHP_VERSION_ID_
- _PS_INSTALL_VERSION_
- _PS_MODE_DEMO_
- _PS_MODE_DEV_
- _PS_VERSION_
- __PS_BASE_URI__
- PHP_VERSION_ID
- Memcached::HAVE_IGBINARY
- PaymentModuleCore::DEBUG_MODE
- _PS_API_IN_USE_
- _PS_ALLOW_MULTI_STATEMENTS_QUERIES_
- _PS_DISPLAY_ONLY_ERRORS_