-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
36 lines (36 loc) · 1.27 KB
/
phpstan.neon
File metadata and controls
36 lines (36 loc) · 1.27 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
parameters:
level: 6
paths:
- .
excludePaths:
- vendor
- phpstan-bootstrap.php
bootstrapFiles:
- phpstan-bootstrap.php
scanDirectories:
- ../../lib
- ../../course
- ../../mod/page
- ../../mod/label
- ../../mod/url
ignoreErrors:
# Moodle globals — set by Moodle's bootstrap, not visible to PHPStan.
- '#Variable \$DB might not be defined#'
- '#Variable \$CFG might not be defined#'
- '#Variable \$USER might not be defined#'
- '#Variable \$OUTPUT might not be defined#'
- '#Variable \$PAGE might not be defined#'
- '#Variable \$ADMIN might not be defined#'
# Moodle version.php and settings.php use variables set by the caller.
- '#Variable \$plugin might not be defined#'
- '#Variable \$hassiteconfig might not be defined#'
# Moodle's iterableValue strictness — plugin uses mixed arrays from DB and API.
-
identifier: missingType.iterableValue
# Moodle callback functions have no return type by convention.
-
identifier: missingType.return
path: lib.php
-
identifier: missingType.return
path: classes/form/config_form.php