-
-
Notifications
You must be signed in to change notification settings - Fork 158
/
phpstan-package.neon
55 lines (50 loc) · 3.6 KB
/
phpstan-package.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
parameters:
reportUnmatchedIgnoredErrors: false
excludePaths:
# 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'
- '**/DataHub/*.php'
- 'vendor/***'
- 'Core/EventListener/SessionStoreStorageListSubscriber.php'
- 'Core/EventListener/SessionStoreStorageListLogoutSubscriber.php'
- 'Core/EventListener/StorageListBlamerListener.php'
- 'Core/Context/CustomerAndStoreBasedStorageListContext.php'
- 'Core/Context/SessionAndStoreBasedStorageListContext.php'
- 'Core/Context/StoreBasedStorageListContext.php'
- 'Core/Repository/CustomerAndStoreAwareRepositoryInterface.php'
- 'DependencyInjection/CoreShopStorageListExtension.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./'
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)/'
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface/'
- '/Call to an undefined method Pimcore\\Model\\(.*)::save\(\)./'
- '/Call to an undefined method Pimcore\\Model\\(.*)::delete\(\)./'
- '/Method Pimcore\\Model\\DataObject\\Concrete::getLatestVersion\(\)\(.*\)/'
- '/Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\)/'
- '/Method CoreShop\\Bundle\\ResourceBundle\\Routing\\ResourceLoader::getResolver\(\) should return Symfony\\Component\\Config\\Loader\\LoaderResolverInterface but return statement is missing./'
- '/PHPDoc type string of property CoreShop\\Bundle\\PayumBundle\\Request\\GetStatus::\$status is not covariant with PHPDoc type int of overridden property Payum\\Core\\Request\\BaseGetStatus::\$status./'
- '/Method CoreShop\\Bundle\\ResourceBundle\\Controller\\AdminController::getSubscribedServices\(\) should return non-empty-array<string|Symfony\\Contracts\\Service\\Attribute\\SubscribedService> but returns array<string>./'
# Pimcore BC Breaks
- '/Class Pimcore\\Bundle\\AdminBundle\\Helper\\GridHelperService not found/'
- '/Class Pimcore\\Model\\DataObject\\LazyLoadedFieldsInterface not found/'
- '/Class Pimcore\\Model\\DataObject\\ClassDefinition\\Data\\\CustomVersionMarshalInterface not found/'
- '/Call to method markLazyKeyAsLoaded\(\) on an unknown class Pimcore\\Model\\DataObject\\LazyLoadedFieldsInterface/'
- '/Call to method isLazyKeyLoaded\(\) on an unknown class Pimcore\\Model\\DataObject\\LazyLoadedFieldsInterface/'
- '/Access to undefined constant PackageVersions\\Versions::VERSIONS/'
includes:
- ./vendor/phpstan/phpstan-doctrine/extension.neon
- ./vendor/phpstan/phpstan-webmozart-assert/extension.neon