Skip to content

Commit 73cb7f1

Browse files
committed
Update PHPStan config
1 parent d5216b3 commit 73cb7f1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

phpstan.neon

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ includes:
33
- vendor/phpstan/phpstan-strict-rules/rules.neon
44

55
parameters:
6-
checkMissingIterableValueType: false
7-
checkGenericClassInNonGenericObjectType: false
8-
96
excludePaths:
107
# The following two paths are excluded since PHPStan crashes with "unknown interface" error
118
# which cannot be excluded with ignoreErrors config
129
- bundle/Core/Search/Elasticsearch/Query/Common/CriterionVisitor/Tags.php
1310
- bundle/Core/Search/Elasticsearch/QueryDSL/PrefixQuery.php
1411

1512
ignoreErrors:
13+
-
14+
identifier: missingType.iterableValue
15+
-
16+
identifier: missingType.generics
1617
-
1718
message: '#Else branch is unreachable because ternary operator condition is always true.#'
1819
path: bundle/Core/FieldType/Tags/Type.php

phpstan.tests.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ includes:
44
- vendor/phpstan/phpstan-phpunit/rules.neon
55

66
parameters:
7-
checkMissingIterableValueType: false
8-
97
ignoreErrors:
8+
-
9+
identifier: missingType.iterableValue
1010
- '#Access to an undefined property Ibexa\\Contracts\\Core\\Repository\\Values\\ValueObject::\$id.#'
1111
- '#Access to an undefined property Netgen\\TagsBundle\\API\\Repository\\Values\\Tags\\Tag::\$notDefined.#'
1212
- '#Missing call to parent::setUp\(\) method.#'

0 commit comments

Comments
 (0)