-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
20 lines (20 loc) · 891 Bytes
/
phpstan.neon
File metadata and controls
20 lines (20 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
includes:
- phpstan.common.neon
parameters:
resultCachePath: '%tmpDir%/resultCache-src.php'
paths:
- src
exceptions: # https://phpstan.org/blog/bring-your-exceptions-under-control
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionRegexes:
- '#^Exception$#' # Mark general Exception as unchecked, subclasses are still checked
uncheckedExceptionClasses:
- RuntimeException # https://www.php.net/manual/en/class.runtimeexception.php
- LogicException # https://www.php.net/manual/en/class.logicexception.php
- TypeError # https://www.php.net/manual/en/class.typeerror.php
- Psr\Cache\InvalidArgumentException
- Psr\Container\ContainerExceptionInterface
- ReflectionException
- JsonException