-
Notifications
You must be signed in to change notification settings - Fork 277
Expand file tree
/
Copy pathphpstan-no-baseline.neon
More file actions
33 lines (33 loc) · 1.23 KB
/
phpstan-no-baseline.neon
File metadata and controls
33 lines (33 loc) · 1.23 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
parameters:
level: 8
paths:
- lib
- plugins
# Vendor type stubs — correct wrong/missing types in third-party libraries
# OpenAi::chat() declares $stream as null but accepts callable at runtime
stubFiles:
- phpstan-stubs/OpenAi.stub
scanFiles:
- router.php
excludePaths:
- lib/View/APIDoc.php (?)
- lib/View/templates/_APIDoc.php
- vendor
- plugins/translated/tests
- plugins/uber/tests
universalObjectCratesClasses:
- Model\DataAccess\ShapelessConcreteStruct
# Flag @throws \Exception on public/protected methods when only
# a narrower exception (e.g. \InvalidArgumentException) is thrown
checkTooWideThrowTypesInProtectedAndPublicMethods: true
exceptions:
uncheckedExceptionClasses:
- 'Model\DataAccess\UnknownPropertyException'
check:
# Report when code throws an exception that has no
# matching @throws tag in the method's PHPDoc
missingCheckedExceptionInThrows: true
# Report when @throws declares a broader type than
# what is actually thrown (applies to all methods)
tooWideThrowType: true
treatPhpDocTypesAsCertain: false