-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
44 lines (44 loc) · 1.21 KB
/
phpstan.neon
File metadata and controls
44 lines (44 loc) · 1.21 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
42
43
44
includes:
- ../../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ../../../vendor/phpstan/phpstan/conf/bleedingEdge.neon
#
# run "composer require --dev phpstan/phpstan phpstan/phpstan-deprecation-rules"
# then add these lines to the composer.json at the web root:
#
# "autoload-dev": {
# "classmap": [
# "pw.php"
# ]
# },
#
# then run composer dump-autoload
services:
-
class: ProcessWirePHPStan\WireMethodReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
parameters:
phpVersion: 80500
level: 9
ignoreErrors:
-
rawMessages:
- 'Method ProcessWire\Session::redirect() invoked with 1 parameter, 0 required.'
#-
#identifiers:
# - unset.possiblyHookedProperty
# - varTag.nativeType
# - if.alwaysTrue
# - ternary.alwaysTrue
paths:
- ProcessFileManager.module
scanDirectories:
- ../../../wire/core
- ../../../wire/modules
- filemanager
fileExtensions:
- php
- module
- inc
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: true