-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
27 lines (25 loc) · 1.31 KB
/
Copy pathphpstan.neon
File metadata and controls
27 lines (25 loc) · 1.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
parameters:
level: 6
paths:
- src
symfony:
containerXmlPath: var/cache/dev/App_KernelDevDebugContainer.xml
ignoreErrors:
# Entity IDs are assigned by Doctrine, not in PHP code
- '#Property .+::\$id \(int\|null\) is never assigned int#'
# PHPUnit CodeCoverageIgnore attribute only available in dev
- '#Attribute class PHPUnit\\Framework\\Attributes\\CodeCoverageIgnore does not exist#'
# Doctrine ObjectManager::isOpen() exists on EntityManagerInterface
- '#Call to an undefined method Doctrine\\Persistence\\ObjectManager::isOpen#'
# SubmitButton::isClicked() exists but PHPStan doesn't see it through FormInterface
- '#Call to an undefined method Symfony\\Component\\Form\\FormInterface::isClicked#'
# Doctrine DBAL 4.x deprecated ConnectionEventArgs but it still works
- '#Doctrine\\DBAL\\Event\\ConnectionEventArgs#'
# Generic type specifications for Symfony/Doctrine classes
-
identifier: missingType.generics
# PhpStaticAnalysis Implements_ attribute not recognized
- '#Attribute class PhpStaticAnalysis\\Attributes\\Implements_ does not exist#'
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/php-static-analysis/phpstan-extension/extension.neon