-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpstan.neon
34 lines (34 loc) · 1.49 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
parameters:
level: 6
bootstrapFiles:
- config/bootstrap.php
fileExtensions:
- php
paths:
- src
- templates
- tests
- config/Migrations
- plugins/Admin/src
- plugins/Admin/templates
ignoreErrors:
- message: '#Access to an undefined property .*#'
- message: '#Cannot access property .*#'
- message: '#Call to an undefined method Authorization\\IdentityInterface::*.#'
- message: '#Method .* has parameter .* with no type specified.#'
- message: '#Method .* has parameter .* with no value type specified in iterable type array.#'
- message: '#Method .* return type has no value type specified in iterable type array.#'
- message: '#Property .* type has no value type specified in iterable type array.#'
- message: '#Class .* extends generic class .* but does not specify its types: .*#'
- message: '#Method .* has parameter .* with generic (class|interface) .* but does not specify its types: .*#'
- message: '#Method .* return type with generic (class|interface) .* does not specify its types: .*#'
- message: '#Variable \$.* might not be defined#'
paths:
- templates
- plugins/Admin/templates
- message: '#Variable \$.* in empty\(\) always exists and is .* falsy\.$#'
path: src
rules:
- Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule
includes:
- vendor/cakedc/cakephp-phpstan/extension.neon