forked from coreshop/CoreShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
44 lines (37 loc) · 2.11 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
parameters:
autoload_files:
- %currentWorkingDirectory%/vendor/pimcore/pimcore/lib/helper-functions.php
- %currentWorkingDirectory%/vendor/pimcore/pimcore/stubs/compatibility-v4.php
reportUnmatchedIgnoredErrors: false
symfony:
container_xml_path: var/cache/dev/appDevDebugProjectContainer.xml
excludes_analyse:
# Makes PHPStan crash
- '**/DependencyInjection/Configuration.php'
- '**/Migrations/Version*.php'
# Ignore cause the file uses external dependencies and will only be used if those dependencies are met
- 'CoreShop/Component/SEO/Extractor/LuceneSearchExtractor.php'
- '**/ProcessManager/IndexListener.php'
- '**/ProcessManager/IndexProcess.php'
ignoreErrors:
# Magic calls
- '/Call to an undefined static method Webmozart\\Assert\\Assert::all/'
- '/Call to an undefined static method Webmozart\\Assert\\Assert::nullOr/'
- '/Call to an undefined method Faker\\Generator::/'
- '/Access to an undefined property Faker\\Generator::/'
- '/Constant PIMCORE_CONFIGURATION_DIRECTORY not found./'
- '/Constant PIMCORE_CLASS_DIRECTORY not found./'
- '/Constant PIMCORE_WEB_ROOT not found./'
- '/Constant PIMCORE_DEVMODE not found./'
- '/Class Zend_Paginator_Adapter_Interface not found and could not be autoloaded./'
- '/Class LuceneSearchBundle/'
- '/unknown class LuceneSearchBundle/'
- '/typehint type LuceneSearchBundle/'
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children()/'
- '/Call to an undefined method Pimcore\\Model\\(.*)::save()./'
- '/Call to an undefined method Pimcore\\Model\\(.*)::delete()./'
# Pimcore BC Breaks
- '/Class Pimcore\\Model\\DataObject\\ClassDefinition\\Data\\Href not found/'
- '/Class Pimcore\\Model\\DataObject\\ClassDefinition\\Data\\Multihref not found/'
# BC Breaks that will be resolved with 3.0
- '/Method CoreShop\\Bundle\\ThemeBundle\\Service\\ThemeResolverInterface::resolveTheme()/'