-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpstan.neon.dist
47 lines (46 loc) · 1.42 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
parameters:
paths:
#- api
- Civi
#- CRM
- tests
excludePaths:
analyse:
- CRM/*/DAO/*
- tests/phpunit/bootstrap.php
scanFiles:
- civioffice.civix.php
- tools/phpunit/vendor/bin/.phpunit/phpunit/src/Framework/TestCase.php
scanDirectories:
- CRM
- tools/phpunit/vendor/bin/.phpunit/phpunit/src/Framework
bootstrapFiles:
- tools/phpunit/vendor/bin/.phpunit/phpunit/vendor/autoload.php
- vendor/autoload.php
- phpstanBootstrap.php
level: 9
universalObjectCratesClasses:
- Civi\Core\Event\GenericHookEvent
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
checkMissingCallableSignature: true
treatPhpDocTypesAsCertain: false
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
checkedExceptionClasses:
- \Webmozart\Assert\InvalidArgumentException
implicitThrows: false
earlyTerminatingMethodCalls:
CRM_Queue_Runner:
- runAllViaWeb
ignoreErrors:
# Note paths are prefixed with "*/" to work with inspections in PHPStorm because of:
# https://youtrack.jetbrains.com/issue/WI-63891/PHPStan-ignoreErrors-configuration-isnt-working-with-inspections
# For actions that are fetched from service container
-
message: '#^Cannot call method setCheckPermissions\(\) on mixed.$#'
path: */Civi/Api4/*.php
- '#^Class Civi\\Civioffice\\Render\\Queue\\RenderQueueBuilder has an uninitialized property #'
tmpDir: .phpstan