-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpstan.neon.dist
33 lines (33 loc) · 1.28 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
parameters:
level: 6
fileExtensions:
- php
- phps
paths:
- .
excludePaths:
analyse:
- vendor
- plugins/viathinksoft/publicPages/100_whois/whois/xml/vendor
- plugins/viathinksoft/publicPages/100_whois/whois/json/vendor
analyseAndScan:
- userdata/cache/phpstan
tmpDir: userdata/cache/phpstan
bootstrapFiles:
- includes/oidplus.inc.php
ignoreErrors:
- '#is always (true|false)\.#'
- '#Call to function assert\(\) with false will always evaluate to false\.#'
#- '#with no typehint specified\.#'
# Level 6:
- '#Method (.+) has parameter (.+) with no value type specified in iterable type array.#'
- '#Method (.+) return type has no value type specified in iterable type array.#'
- '#Property (.+) type has no value type specified in iterable type array.#'
- '#Method (.+) has no return type specified.#'
- '#Method (.+) has parameter (.+) with no type specified.#'
- '#Function (.+) has parameter (.+) with no value type specified in iterable type array.#'
- '#Function (.+) has no return type specified.#'
- '#Property (.+) has no type specified.#'
- '#Function (.+) return type has no value type specified in iterable type array.#'
# For PHP<8.2 compatibility:
- '#PHPDoc tag @throws with type Random\\RandomException is not subtype of Throwable#'