-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
40 lines (38 loc) · 1.81 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
40 lines (38 loc) · 1.81 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
parameters:
paths:
- src/
- tests/
exceptions:
uncheckedExceptionClasses:
- 'Symfony\Component\Validator\Exception\ConstraintDefinitionException'
- 'Symfony\Component\Validator\Exception\InvalidOptionsException'
- 'Symfony\Component\Validator\Exception\MissingOptionsException'
# The errors below depend on which ORM major is installed (^2.20|^3.0 are both supported),
# so each analysis run only matches part of them.
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# ORM 3-only mapping classes, unknown when ORM 2 is installed
-
message: '#Doctrine\\ORM\\Mapping\\(FieldMapping|AssociationMapping|ToOneOwningSideMapping|OneToManyAssociationMapping|ManyToOneAssociationMapping|ManyToManyOwningSideMapping)#'
identifier: class.notFound
# The tests feed ORM 2 array-shaped mappings into ClassMetadata on both majors on purpose,
# and build ORM 3 mapping objects from minimal fixture arrays
-
path: tests/Validator/Constraints/EntityValidatorTest.php
identifier: assign.propertyType
-
path: tests/Validator/Constraints/EntityValidatorTest.php
identifier: argument.type
# The ORM 2 (array) / ORM 3 (object) runtime detection is dead code for whichever major is installed
-
path: src/Validator/Constraints/EntityValidator.php
identifier: function.alreadyNarrowedType
-
path: src/Validator/Constraints/EntityValidator.php
identifier: nullCoalesce.offset
-
path: src/Validator/Constraints/EntityValidator.php
identifier: function.impossibleType
includes:
- vendor/assoconnect/php-quality-config/phpstan.extension.neon
- ./phpstan-baseline.neon