Skip to content

Commit a03ab2e

Browse files
committed
Tweak PHPStan config.
1 parent 0de5594 commit a03ab2e

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

phpstan.neon

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ parameters:
66
excludePaths:
77
- tests/Envs/*
88
ignoreErrors:
9-
# -
10-
# message: '#type has no value type specified in iterable type array#'
11-
# path: tests/
12-
# -
13-
# message: '#type has no value type specified in iterable type iterable#'
14-
# path: tests/
9+
-
10+
message: '#type has no value type specified in iterable type array#'
11+
path: tests/
12+
reportUnmatched: false
13+
-
14+
message: '#type has no value type specified in iterable type iterable#'
15+
path: tests/
16+
reportUnmatched: false
1517
# PHPStan is overly aggressive on readonly properties.
16-
- '#Class (.*) has an uninitialized readonly property (.*). Assign it in the constructor.#'
17-
- '#Readonly property (.*) is assigned outside of the constructor.#'
18+
-
19+
identifier: property.uninitializedReadonly
20+
reportUnmatched: false
21+
-
22+
identifier: property.readOnlyAssignNotInConstructor
23+
reportUnmatched: false
1824
# This is wrong, getName() is a working method on ReflectionType. But the stubs are wrong, or something.
1925
-
2026
message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#"

0 commit comments

Comments
 (0)