-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathphpstan.neon
133 lines (133 loc) · 4.31 KB
/
phpstan.neon
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
parameters:
level: max
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- stubs.php
excludePaths:
- */node_modules/*
- */tests/*
- */bin/*
- */images/*
- */languages/*
- */js/*
- */vendor/*
- */fonts/*
- */deprecated/*
- */rector.php
strictRules:
disallowedLooseComparison: false
booleansInConditions: false
uselessCast: false
requireParentConstructorCall: false
strictCalls: false
noVariableVariables: false
ignoreErrors:
- '#Access to an undefined property#'
- '#Cannot access (offset|property)+#'
- '#Cannot (call method|cast|assign offset)+#'
- '#Function (apply_filters)+ invoked with#'
- '#code above always terminates.#'
- '#does not (accept|exist on)+#'
- '#expects (array|string|int|callable|object|stdClass|float|bool|resource)+#'
- '#is always (false|true)+.#'
- '#no (typehint|value type|return typehint)+ specified.#'
- '#of echo cannot be converted to string.#'
- '#only iterables are supported#'
- '#results in an error.#'
- '#should return#'
- '#will always evaluate to#'
- '#has no return type specified#'
- '#with no type specified#'
- '#in isset\(\) does not exist.#'
- '#is unused.#'
- '#is never read, only written#'
- '#in empty\(\) is not falsy.#'
- '#always exists and is not falsy.#'
- '#has no type specified.#'
-
message: '#has an unused parameter#'
paths:
- classes/models/FrmFieldOption.php
- classes/models/FrmSolution.php
- stubs.php
-
message: '#has invalid type#'
path: stubs.php
-
message: '#Possibly invalid array key type#'
paths:
- classes/helpers/FrmCSVExportHelper.php
- classes/helpers/FrmFormsListHelper.php
-
message: '#get_mailer\(\) expects#'
path: classes/controllers/FrmSMTPController.php
-
message: '#has invalid return type#'
path: classes/controllers/FrmSMTPController.php
-
message: '#has an unused use#'
path: classes/views/styles/manage.php
-
message: '#Cannot access an offset on mixed.#'
paths:
- classes/helpers/FrmFormMigratorsHelper.php
- classes/models/FrmEntryMeta.php
-
message: '#callback of function spl_autoload_register expects#'
path: formidable.php
-
message: '#Call to an undefined method FrmFieldType::get\_file\_id#'
path: classes/helpers/FrmXMLHelper.php
-
message: '#Cannot use array destructuring on#'
path: classes/helpers/FrmStylesHelper.php
-
message: '#should be contravariant with#'
paths:
- classes/helpers/FrmFormsListHelper.php
- classes/models/FrmInstallerSkin.php
- stripe/controllers/FrmStrpLiteActionsController.php
- '#Construct empty\(\) is not allowed. Use more strict comparison#'
-
message: '#Foreach overwrites \$ip with its value variable.#'
path: classes/helpers/FrmAppHelper.php
-
message: '#Only numeric types are allowed#'
paths:
- classes/helpers/FrmCSVExportHelper.php
- classes/models/FrmStyle.php
-
message: '#Call to an undefined method FrmFieldType::get_export_headings#'
path: classes/helpers/FrmCSVExportHelper.php
-
message: '#Call to an undefined method object::(get\_pagenum|prepare\_items|get_pagination\_arg)#'
paths:
- classes/controllers/FrmEntriesController.php
- classes/controllers/FrmFormsController.php
-
message: '#Call to an undefined method object::prepare_items#'
path: classes/helpers/FrmDashboardHelper.php
-
message: '#Access to protected property FrmFieldType::\$field#'
path: classes/controllers/FrmFieldsController.php
-
message: '#might not be defined.#'
paths:
- classes/views/*
- stripe/views/*
- css/*
- classes/controllers/FrmApplicationsController.php
- classes/controllers/FrmFieldsController.php
- classes/controllers/FrmStylesController.php
-
message: '#Call to protected method+#'
paths:
- classes/views/frm-fields/back-end/combo-field/sub-field-options.php
- classes/views/frm-fields/back-end/phone/phone-type.php
- classes/views/frm-fields/front-end/combo-field/combo-field.php
-
message: '#Call to function compact\(\) contains possibly undefined variable#'
paths:
- classes/views/*
- stripe/views/action-settings/payments-options.php