generated from Crell/php-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpstan.neon
23 lines (23 loc) · 932 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
parameters:
level: 9
paths:
- src
- tests
excludePaths:
- tests/Envs/*
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
# -
# message: '#type has no value type specified in iterable type array#'
# path: tests/
# -
# message: '#type has no value type specified in iterable type iterable#'
# path: tests/
# PHPStan is overly aggressive on readonly properties.
- '#Class (.*) has an uninitialized readonly property (.*). Assign it in the constructor.#'
- '#Readonly property (.*) is assigned outside of the constructor.#'
# This is wrong, getName() is a working method on ReflectionType. But the stubs are wrong, or something.
-
message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#"
count: 1
path: src/TypeMismatch.php