forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
71 lines (65 loc) · 3.41 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
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
includes:
- phpstan-baseline.neon
parameters:
#bootstrap: dev/pimcore/pimcore/.travis/phpstan-bootstrap.php # optional when running in project scope
reportUnmatchedIgnoredErrors: false
symfony:
container_xml_path: var/cache/dev/appAppKernelDevDebugContainer.xml # Symfony ^4.0
#container_xml_path: var/cache/dev/appDevDebugProjectContainer.xml # Symfony ^3.4
excludes_analyse:
- '**/DependencyInjection/Configuration.php'
- '**/Migrations/Version*.php'
- '**/External/AdminerController.php'
- '**/Generator/DoctrineCrudGenerator.php'
- '**/EcommerceFrameworkBundle/Resources/views/Voucher/parts/paginator.html.php'
- '**/EcommerceFrameworkBundle/Resources/views/Includes/paging.html.php'
- '**/Processor/PdfReactor8.php'
- '**/simple_html_dom.php'
- '**/PDFreactor.class.php'
- '**/Document/MigrateTagNamingStrategyCommand.php'
- '**/bundles/AdminBundle/Security/Guard/AdminAuthenticator.php'
ignoreErrors:
- '/(snappy|lz4)_(un)?compress/'
- '/Instantiated class COM not found/'
- '/(Order|Checkout)Manager.*__construct\(\) does not call parent constructor/'
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)/'
- '/DataObject\\(OnlineShopVoucherToken|OnlineShopVoucherSeries|OnlineShopOrder|OnlineShopOrderItem|OnlineShopTaxClass|Customer|FilterDefinition)/'
- '/Fieldcollection\\Data\\(VoucherTokenTypeSingle|VoucherTokenTypePattern|OrderPriceModifications|PricingRule|TaxEntry|FilterCategory|PaymentInfo)/'
- '/Matcher::__construct\(\).*TypeMatcher/'
-
message: '/method object::(pimcoreUrl|translateAdmin)/'
path: '**/*.html.php'
-
message: '#Using \$this outside a class\.#'
path: '**/*.html.php'
-
message: '#Variable \$(this|view|app) might not be defined.#'
paths:
- '**/*.html.php'
- '**/EcommerceFrameworkBundle/Resources/views/**/*.js.php'
-
message: '#Using \$this outside a class\.#'
path: '**/*.js.php'
-
message: '#Undefined variable: \$(this|view|app)#'
path: '**/*.js.php'
-
message: '/ALPHACHANNEL_REMOVE/'
path: '**/Imagick.php'
-
message: '/an undefined static method.*getParameter\(\)./'
path: '**/Controller/Controller.php'
-
message: '/NO_AUTO_CACHE_CONTROL_HEADER/'
path: '**/Controller/PublicServicesController.php'
-
message: '/__construct\(\) does not call parent constructor/'
path: '**/Migrations/Version.php'
- '~^Method Doctrine\\DBAL(\\.*)?Connection::query\(\) invoked with \d+ parameters?, 0 required\.\z~'
- '~^Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required\.\z~'
- '~^Unsafe usage of new static\(\)~'
- '~^Method Psr\\Cache\\CacheItemPoolInterface::clear\(\) invoked with 1 parameter, 0 required\.\z~'
- '~^Method Symfony\\Component\\Cache\\Adapter\\AdapterInterface::clear\(\) invoked with 1 parameter, 0 required\.\z~'
# see https://phpstan.org/config-reference#universal-object-crates
universalObjectCratesClasses:
- Pimcore\Templating\Model\ViewModel