Repository navigation
Expand file tree
/
Copy pathphpstan.dev.neon
More file actions
37 lines (34 loc) · 1.84 KB
/
Copy pathphpstan.dev.neon
File metadata and controls
37 lines (34 loc) · 1.84 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
# Development configuration.
# Rendered into the gitignored phpstan.neon by bin/phpstan-config-generator.php.
# Everything the extension verifier cannot load belongs here, not in phpstan.neon.dist.
# No ignoreErrors here, they all go into phpstan.neon.dist.
# common.neon turns reportUnmatchedIgnoredErrors back on, so it must stay after the dist.
# The platform lists phpstan-shopware in extension-installer.ignore, hence the explicit include.
includes:
- phpstan.neon.dist
- %ShopwareRoot%/src/Core/DevOps/StaticAnalyze/PHPStan/common.neon
- ../../../vendor/shopwarelabs/phpstan-shopware/rules.neon
parameters:
symfony:
containerXmlPath: '../../..%ShopwareHashedCacheDir%/%ShopwareKernelClass%DevDebugContainer.xml'
consoleApplicationLoader: %ShopwareRoot%/src/Core/DevOps/StaticAnalyze/console-application.php
type_perfect:
narrow_return: true
narrow_param: false
services:
-
class: Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedServiceDecoratorPattern
-
class: Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedMethodsThrowDeprecationRule
arguments:
deprecationPatterns:
- @Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedServiceDecoratorPattern
tags:
- phpstan.rules.rule
rules:
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Tests\CoversAttributeRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Tests\MockingSimpleObjectsNotAllowedRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\DecorationPatternRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\PackageAnnotationRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\DomainExceptionRule
- Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Migration\NoAfterStatementRule