-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.neon
55 lines (43 loc) · 1.22 KB
/
extension.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
parameters:
scanDirectories: [ %moodle.rootDirectory% ]
treatPhpDocTypesAsCertain: false
bootstrapFiles:
- bootstrap.php
stubFiles:
- stubs/core_message.stub
exceptions:
uncheckedExceptionClasses:
- moodle_exception
ignoreErrors:
-
message: '#^Variable (?:\$CFG|\$COURSE|\$DB|\$OUTPUT|\$PAGE|\$SESSION|\$USER|\$SITE) might not be defined\.$#'
reportUnmatched: false
-
message: '#^Variable (?:\$ADMIN|\$section|\$settings) might not be defined\.$#'
path: */settings.php
reportUnmatched: false
-
message: '#^Variable (?:\$plugin|\$module) might not be defined\.$#'
path: */version.php
reportUnmatched: false
services:
moodleRootManager:
class: PhpstanMoodle\MoodleRootManager
arguments:
moodleRoot: %moodle.rootDirectory%
-
class: PhpstanMoodle\Type\GetAuthPluginTypeSpecifyingExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: PhpstanMoodle\Type\EnrolGetPluginTypeSpecifyingExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: PhpstanMoodle\Type\GetPluginGeneratorTypeSpecifyingExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
parametersSchema:
moodle: structure([
rootDirectory: string()
])