-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
phpstan.neon.dist
38 lines (34 loc) · 1.91 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
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 4
checkMissingOverrideMethodAttribute: true
paths:
- .
excludePaths:
- node_modules
- vendor
ignoreErrors:
# relax strict rules
- '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.~'
- '~^Variable (static )?(property access|method call) on .+\.~'
- '~^Variable variables are not allowed.~'
- '~^Variable .* might not be defined\.~'
- '~Call to function array_filter\(\) requires parameter #2 to be passed to avoid loose comparison semantics.~'
# TODO
- '~^Dynamic call to static method .+\.~' # TODO in https://github.com/roundcube/roundcubemail/pull/9314
- '~^Construct empty\(\) is not allowed\. Use more strict comparison\.~'
- '~^Loose comparison via "[=!]=" is not allowed\.~'
- '~^Casting to .+ something that''s already .+\.~'
- '~^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.~'
- '~^Call to function (array_search|in_array)\(\) requires parameter #3 to be set\.~'
- '~^Call to function base64_decode\(\) requires parameter #2 to be (set|true).~'
-
message: '~^Parameter #1 \$browser \(Roundcube\\Tests\\Browser\\Browser\) of method Roundcube\\Tests\\Browser\\Components\\\w+::assert\(\) should be contravariant with parameter \$browser \(Laravel\\Dusk\\Browser\) of method Laravel\\Dusk\\Component::assert\(\)$~'
count: 7
path: tests/Browser/Components/*.php
# https://github.com/php/pecl-authentication-krb5
-
path: 'program/lib/Roundcube/rcube_imap_generic.php'
message: '~^(Instantiated class (GSSAPIContext|KRB5CCache) not found|Call to method \w+\(\) on an unknown class (GSSAPIContext|KRB5CCache))\.$~'
count: 7