-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
74 lines (72 loc) · 2.1 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
74 lines (72 loc) · 2.1 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
includes:
- phpstan-baseline.neon
parameters:
civicrm:
# The class \CRM_Core_Smarty provides various methods. Methods that are
# not explicitly defined are delegated to the actual Smarty object via
# __call(). In many cases explicit methods like fetchWith() (or
# \CRM_Utils_String::parseOneOffStringThroughSmarty()) should be enough.
# Though if one of the implicit methods is used, this option has to be
# enabled.
implicitSmartyMethodsUsed: true
optionalExtensions:
- action-provider
- dataprocessor
- org.project60.sepa
paths:
- api
- Civi
- CRM
- tests
- banking.php
- banking_options.php
excludePaths:
analyse:
- CRM/Banking/DAO/*
- tests/phpunit/bootstrap.php
scanFiles:
- banking.civix.php
- tools/phpunit/vendor/bin/.phpunit/phpunit/src/Framework/TestCase.php
scanDirectories:
- tools/phpunit/vendor/bin/.phpunit/phpunit/src/Framework
- mixin
- packages
- ../org.project60.sepa/packages
bootstrapFiles:
- tools/phpunit/vendor/bin/.phpunit/phpunit/vendor/autoload.php
- phpstanBootstrap.php
level: 9
universalObjectCratesClasses:
- Civi\Core\Event\GenericHookEvent
- CRM_Core_Config
- CRM_Core_DAO
- civicrm_api3
earlyTerminatingMethodCalls:
CRM_Core_Error:
- statusBounce
CRM_Utils_System:
- civiExit
- redirect
CRM_Queue_Runner:
- runAllViaWeb
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
checkMissingCallableSignature: true
treatPhpDocTypesAsCertain: false
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
checkedExceptionClasses:
- \Webmozart\Assert\InvalidArgumentException
implicitThrows: false
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
tmpDir: .phpstan
parametersSchema:
civicrm: structure([
implicitSmartyMethodsUsed: bool()
# Optional extensions (i.e. not required in info.xml) that should be added to class loader.
?optionalExtensions: listOf(string())
])