-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
41 lines (41 loc) · 1.48 KB
/
phpstan.neon
File metadata and controls
41 lines (41 loc) · 1.48 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
37
38
39
40
41
parameters:
level: 5
treatPhpDocTypesAsCertain: false
paths:
- src/Etc
- src/Common
- src/Modules
excludePaths:
- vendor
- logs
- zbug
ignoreErrors:
# Legacy constants - defined at runtime in Config::initConfig()
# These will be gradually replaced with Config::getBaseUrl(), Config::getAppDir(), etc.
-
message: '#Constant BASE_URL not found#'
path: src/*
-
message: '#Constant THIS_DIR not found#'
path: src/*
# Router/middleware return type issues - methods work correctly
-
message: '#Result of method .* \(void\) is used#'
path: src/Etc/Router.php
# CacheManager magic methods via __callStatic
-
message: '#Call to an undefined static method App\\Etc\\Cache\\CacheManager::(get|put|forget|has|flush)#'
path: src/*
# bv-nav partial — variables injected via extract() at include-time
-
message: '#Variable \$(base|role|logged|roleBadge|uname) might not be defined#'
path: src/Common/Assets/bv-nav.php
-
message: '#Call to protected method (isActive|dropActive)\(\) of class#'
path: src/Common/Assets/bv-nav.php
# TenantApp uses SITEPATH legacy constant
-
message: '#Constant SITEPATH not found#'
path: src/Modules/TenantApp/*
bootstrapFiles:
- vendor/autoload.php