forked from glpi-project/glpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
42 lines (39 loc) · 1.32 KB
/
phpstan.neon.dist
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
37
38
39
40
41
42
includes:
- .phpstan-baseline.php
parameters:
parallel:
maximumNumberOfProcesses: 4
level: 4
bootstrapFiles:
- stubs/glpi_constants.php
paths:
- ajax
- front
- inc
- install
- src
universalObjectCratesClasses:
- Sabre\VObject\Node
ignoreErrors:
- '/Instantiated class (DB|DBSlave) not found/'
- '/Instantiated class XHProfRuns_Default not found/'
- '/Instantiation of deprecated class Glpi\\Http\\HeaderlessStreamedResponse/'
- { message: '/Variable \$this might not be defined/', paths: [ 'inc/includes.php' ] }
- { message: '/Call to protected method setAjax\(\) of class Glpi\\Controller\\LegacyFileLoadController./', paths: [ 'ajax/*', 'front/*', 'inc/includes.php' ] }
- { message: '/Access to protected property/', paths: [ 'front/dropdown.common.form.php' ] }
- { message: '/LDAP\\Connection/', reportUnmatched: false }
rules:
- GlpiProject\Tools\PHPStan\Rules\GlobalVarTypeRule
# Copy and uncomment this content into a "phpstan.neon" file to add your own config values
#
## Mandatory include:
#
#includes:
# - phpstan.neon.dist
#
## Custom config values
## Example: using more process that the default configuration
#
#parameters:
# parallel:
# maximumNumberOfProcesses: 8