forked from wielebenwir/commonsbooking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
29 lines (29 loc) · 1.02 KB
/
phpstan.neon
File metadata and controls
29 lines (29 loc) · 1.02 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
includes:
- phpstan-baseline.neon
parameters:
phpVersion: 70400
scanFiles:
- commonsbooking.php
scanDirectories:
- vendor/cmb2/cmb2/includes
- vendor-prefixed
paths:
- commonsbooking.php
- src/
- includes/
level: 5
ignoreErrors:
- '#Constant (COMMONSBOOKING.*|WP_DEBUG_LOG) not found.#'
# - '#Instantiated class (CommonsBooking.*CB_Data) not found.#'
- '#Function cb_object_to_array not found.#'
# As long as symfony exceptions do not extend from throwable
- '#Psr\\Cache\\InvalidArgumentException is not subtype of Throwable#'
- '#Psr\\Cache\\CacheException is not subtype of Throwable#'
# Maybe this will be useful in the next phpstan level (because we have a very unusual way of dealing with psr/cache exceptions, bc we throw them all the way up, but the seem to be unchecked exceptions)
# exceptions:
# uncheckedExceptionRegexes:
# - '#Psr\Cache\#'
# - '#CacheException#'
# uncheckedExceptionClasses:
# - 'CacheException'
# - 'Psr\Cache\CacheException'