forked from Leantime/leantime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
39 lines (39 loc) · 1.32 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
35
36
37
38
39
parameters:
bootstrapFiles:
- public/index.php
level: 0
paths:
- public/
- app/Command
- app/Core
- app/Domain
- app/Plugins
- app/Views
- bin/
excludePaths:
- app/Plugins/*/vendor/*
- app/Plugins/*
scanDirectories:
- vendor
- config
ignoreErrors:
# Rules for level 1. Templates use variables through include which are not detected by phpstan
-
messages:
- '#Attribute class Leantime\\Domain\\Connector\\Models\\DbColumn does not exist\.#'
# - '#Variable \$__data might not be defined\.#'
# - '#Constant BASE_URL not found\.#'
# - '#Constant CURRENT_URL not found\.#'
# - '#Variable \$login might not be defined\.#'
# - '#Variable \$roles might not be defined\.#'
# paths:
# - app/Domain/*/Templates/*.tpl.php
# - app/Domain/*/Templates/*.inc.php
# - app/Domain/*/Templates/submodules/*.sub.php
universalObjectCratesClasses:
- Leantime\Core\Environment
earlyTerminatingMethodCalls:
Leantime\Core\Templates:
- redirect
- display
- displayPartial