forked from shopware/SwagPayPal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
64 lines (51 loc) · 2.31 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
64 lines (51 loc) · 2.31 KB
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
includes:
- %ShopwareRoot%/vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
phpVersion: 80100
level: 8
tmpDir: var/cache/phpstan
inferPrivatePropertyTypeFromConstructor: true
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
paths:
- src
- tests
excludePaths:
- src/Resources
- src/DevOps/Rector
symfony:
constant_hassers: false
# the placeholder "%ShopwareHashedCacheDir%" will be replaced on execution by bin/phpstan-config-generator.php script
container_xml_path: '../../..%ShopwareHashedCacheDir%/%ShopwareKernelClass%DevDebugContainer.xml'
ignoreErrors:
# We won't type all arrays/iterables for now
- '#no value type specified in iterable type#'
- # This service gets registered within Cms Extensions
message: '#is not registered in the container#'
path: tests/Checkout/ExpressCheckout/ExpressCheckoutSubscriberTest.php
- # Services in tests are all public
message: '#Service ".*" is private#'
path: tests/**/*.php
- # Ignore finality of repository in tests
message: '#.*extends @final class (\w|\\)*(SalesChannel|Entity)Repository#'
path: tests/**/*.php
- # ignore own deprecations
message: '#.*tag:v10.0.0 -#'
- # ignore Plus deprecations
message: '#deprecated.*(Plus|PLUS|_PAYMENT_|MERCHANT_LOCATION)#'
- # ignore SystemConfigController context requirement
message: '#Call to deprecated method batchSaveConfiguration#'
path: tests/Webhook/Registration/WebhookSystemConfigControllerTest.php
count: 11
- # ignore shopware v6.7 deprecations
message: '#.*tag:v6.7.0 -#'
paths:
- tests/**/*.php
- src/Util/Lifecycle/Update.php
bootstrapFiles:
- bin/static-analyze-autoloader.php
rules:
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Internal\InternalClassRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Internal\InternalClassRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Internal\InternalMethodRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\PackageAnnotationRule