blob: 8f96d6e8b99e367f2d0cc55e4f5a964334927e01 (
plain)
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
56
57
58
59
60
61
62
63
|
parameters:
paths:
- src
tmpDir: ./.build/phpstan
# The level 8 is the highest level
level: 3
autoload_files:
- vendor/adodb/adodb-php/adodb.inc.php
- .configs/debug.kint.php
- src/lib.inc.php
- config.inc.php
- vendor/adodb/adodb-php/drivers/adodb-postgres9.inc.php
excludes_analyse:
- .build/*
- tests/*
- assets/*
- temp/*
- vendor/*
- src/classes/ADO*
- src/router.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
# -
# message: "#^Offset '[a-zA-Z0-9_]+' does not exist on array[.*].$#"
# path: src/*
-
message: "#^PHPDoc tag @param references unknown parameter\\: \\$[a-zA-Z0-9_]+$#"
path: src/*
-
message: "#^Access to an undefined property Psr\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:\\$[a-zA-Z0-9_]+\\.$#"
path: src/*
-
message: "#^Access to an undefined property PHPPgAdmin\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:\\$[a-zA-Z0-9_]+\\.$#"
path: src/*
-
message: "#^Result of method PHPPgAdmin\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:[a-zA-Z0-9_]+\\(\\) \\(void\\) is used\\.$#"
path: src/*
-
message: "#^Call to static method br2ln\\(\\) on trait PHPPgAdmin\\Traits\\HelperTrait\\.#"
path: src/*
-
message: "#^Constructor of class [a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+ has an unused parameter \\$[a-zA-Z0-9_]+\\.$#"
path: src/*
#- '#Property [^\s] has no typehint specified#'
#- '#Call to an undefined method [a-zA-Z0-9\\_]+::expects\(\)#'
#- '#Access to an undefined property PHPPgAdmin::\$[a-zA-Z0-9_]+#'
#- '#Call to an undefined method PHPUnit_Framework_MockObject_MockObject::[a-zA-Z0-9_]+\(\)#'
|