Skip to content

Commit 25b4a12

Browse files
committed
PHPStan: Update baseline
1 parent 5a5cf15 commit 25b4a12

File tree

3 files changed

+0
-325
lines changed

3 files changed

+0
-325
lines changed

phpstan-baseline-7x.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ parameters:
55
count: 2
66
path: application/forms/EntryForm.php
77

8-
-
9-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
10-
count: 2
11-
path: application/forms/EscalationRecipientForm.php
12-
138
-
149
message: "#^Parameter \\#1 \\$time of function strtotime expects string, mixed given\\.$#"
1510
count: 1

phpstan-baseline-8x.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ parameters:
55
count: 2
66
path: application/forms/EntryForm.php
77

8-
-
9-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
10-
count: 2
11-
path: application/forms/EscalationRecipientForm.php
12-
138
-
149
message: "#^Parameter \\#1 \\$datetime of function strtotime expects string, mixed given\\.$#"
1510
count: 1

phpstan-baseline-standard.neon

Lines changed: 0 additions & 315 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ parameters:
110110
count: 2
111111
path: application/controllers/EventRuleController.php
112112

113-
-
114-
message: "#^Call to an undefined method Zend_Controller_Response_Abstract\\:\\:redirectAndExit\\(\\)\\.$#"
115-
count: 1
116-
path: application/controllers/EventRuleController.php
117-
118113
-
119114
message: "#^Cannot access offset 'object_filter' on mixed\\.$#"
120115
count: 2
@@ -145,66 +140,6 @@ parameters:
145140
count: 1
146141
path: application/controllers/EventRuleController.php
147142

148-
-
149-
message: "#^Parameter \\#1 \\$id of static method Icinga\\\\Module\\\\Notifications\\\\Common\\\\Links\\:\\:eventRule\\(\\) expects int, mixed given\\.$#"
150-
count: 3
151-
path: application/controllers/EventRuleController.php
152-
153-
-
154-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:delete\\(\\) expects string, mixed given\\.$#"
155-
count: 3
156-
path: application/controllers/EventRuleController.php
157-
158-
-
159-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:get\\(\\) expects string, mixed given\\.$#"
160-
count: 3
161-
path: application/controllers/EventRuleController.php
162-
163-
-
164-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:set\\(\\) expects string, mixed given\\.$#"
165-
count: 2
166-
path: application/controllers/EventRuleController.php
167-
168-
-
169-
message: "#^Parameter \\#1 \\$query of method ipl\\\\Web\\\\Control\\\\SearchEditor\\:\\:setQueryString\\(\\) expects string, mixed given\\.$#"
170-
count: 1
171-
path: application/controllers/EventRuleController.php
172-
173-
-
174-
message: "#^Parameter \\#1 \\$ruleId of method Icinga\\\\Module\\\\Notifications\\\\Controllers\\\\EventRuleController\\:\\:fromDb\\(\\) expects int, mixed given\\.$#"
175-
count: 2
176-
path: application/controllers/EventRuleController.php
177-
178-
-
179-
message: "#^Call to an undefined method Zend_Controller_Response_Abstract\\:\\:redirectAndExit\\(\\)\\.$#"
180-
count: 1
181-
path: application/controllers/EventRulesController.php
182-
183-
-
184-
message: "#^Cannot access offset 'object_filter' on mixed\\.$#"
185-
count: 2
186-
path: application/controllers/EventRulesController.php
187-
188-
-
189-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:delete\\(\\) expects string, int given\\.$#"
190-
count: 1
191-
path: application/controllers/EventRulesController.php
192-
193-
-
194-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:get\\(\\) expects string, int given\\.$#"
195-
count: 4
196-
path: application/controllers/EventRulesController.php
197-
198-
-
199-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Web\\\\Session\\\\SessionNamespace\\:\\:set\\(\\) expects string, int given\\.$#"
200-
count: 2
201-
path: application/controllers/EventRulesController.php
202-
203-
-
204-
message: "#^Parameter \\#1 \\$query of method ipl\\\\Web\\\\Control\\\\SearchEditor\\:\\:setQueryString\\(\\) expects string, mixed given\\.$#"
205-
count: 1
206-
path: application/controllers/EventRulesController.php
207-
208143
-
209144
message: "#^Parameter \\#2 \\$default of method Icinga\\\\Web\\\\UrlParams\\:\\:shift\\(\\) expects string\\|null, int\\<1, max\\> given\\.$#"
210145
count: 1
@@ -280,21 +215,6 @@ parameters:
280215
count: 1
281216
path: application/controllers/SchedulesController.php
282217

283-
-
284-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\AddEscalationForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
285-
count: 1
286-
path: application/forms/AddEscalationForm.php
287-
288-
-
289-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\AddFilterForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
290-
count: 1
291-
path: application/forms/AddFilterForm.php
292-
293-
-
294-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\BaseEscalationForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
295-
count: 1
296-
path: application/forms/BaseEscalationForm.php
297-
298218
-
299219
message: "#^Cannot call method getName\\(\\) on ipl\\\\Html\\\\Contract\\\\FormSubmitElement\\|null\\.$#"
300220
count: 2
@@ -480,151 +400,6 @@ parameters:
480400
count: 1
481401
path: application/forms/EntryForm.php
482402

483-
-
484-
message: "#^Call to an undefined method ipl\\\\Html\\\\Contract\\\\FormElement\\:\\:setName\\(\\)\\.$#"
485-
count: 4
486-
path: application/forms/EscalationConditionForm.php
487-
488-
-
489-
message: "#^Call to an undefined method ipl\\\\Html\\\\ValidHtml\\:\\:remove\\(\\)\\.$#"
490-
count: 1
491-
path: application/forms/EscalationConditionForm.php
492-
493-
-
494-
message: "#^Call to an undefined method ipl\\\\Stdlib\\\\Filter\\\\Rule\\:\\:getColumn\\(\\)\\.$#"
495-
count: 2
496-
path: application/forms/EscalationConditionForm.php
497-
498-
-
499-
message: "#^Call to an undefined method ipl\\\\Stdlib\\\\Filter\\\\Rule\\:\\:getValue\\(\\)\\.$#"
500-
count: 1
501-
path: application/forms/EscalationConditionForm.php
502-
503-
-
504-
message: "#^Cannot access offset non\\-falsy\\-string on iterable\\<string, mixed\\>\\.$#"
505-
count: 2
506-
path: application/forms/EscalationConditionForm.php
507-
508-
-
509-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\EscalationConditionForm\\:\\:getValues\\(\\) return type has no value type specified in iterable type array\\.$#"
510-
count: 1
511-
path: application/forms/EscalationConditionForm.php
512-
513-
-
514-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\EscalationConditionForm\\:\\:getValues\\(\\) should return array but returns string\\.$#"
515-
count: 1
516-
path: application/forms/EscalationConditionForm.php
517-
518-
-
519-
message: "#^Parameter \\#1 \\$string of static method ipl\\\\Web\\\\Filter\\\\QueryString\\:\\:parse\\(\\) expects string, mixed given\\.$#"
520-
count: 1
521-
path: application/forms/EscalationConditionForm.php
522-
523-
-
524-
message: "#^Call to an undefined method ipl\\\\Html\\\\Contract\\\\FormElement\\:\\:setDisabledOptions\\(\\)\\.$#"
525-
count: 1
526-
path: application/forms/EscalationRecipientForm.php
527-
528-
-
529-
message: "#^Call to an undefined method ipl\\\\Html\\\\Contract\\\\FormElement\\:\\:setName\\(\\)\\.$#"
530-
count: 3
531-
path: application/forms/EscalationRecipientForm.php
532-
533-
-
534-
message: "#^Call to an undefined method ipl\\\\Html\\\\Contract\\\\FormElement\\:\\:setOptions\\(\\)\\.$#"
535-
count: 1
536-
path: application/forms/EscalationRecipientForm.php
537-
538-
-
539-
message: "#^Call to an undefined method ipl\\\\Html\\\\ValidHtml\\:\\:remove\\(\\)\\.$#"
540-
count: 1
541-
path: application/forms/EscalationRecipientForm.php
542-
543-
-
544-
message: "#^Cannot access offset non\\-falsy\\-string on iterable\\<string, mixed\\>\\.$#"
545-
count: 3
546-
path: application/forms/EscalationRecipientForm.php
547-
548-
-
549-
message: "#^Cannot access property \\$full_name on mixed\\.$#"
550-
count: 1
551-
path: application/forms/EscalationRecipientForm.php
552-
553-
-
554-
message: "#^Cannot access property \\$id on mixed\\.$#"
555-
count: 3
556-
path: application/forms/EscalationRecipientForm.php
557-
558-
-
559-
message: "#^Cannot access property \\$name on mixed\\.$#"
560-
count: 2
561-
path: application/forms/EscalationRecipientForm.php
562-
563-
-
564-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\EscalationRecipientForm\\:\\:fetchOptions\\(\\) return type has no value type specified in iterable type array\\.$#"
565-
count: 1
566-
path: application/forms/EscalationRecipientForm.php
567-
568-
-
569-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\EscalationRecipientForm\\:\\:getValues\\(\\) return type has no value type specified in iterable type array\\.$#"
570-
count: 1
571-
path: application/forms/EscalationRecipientForm.php
572-
573-
-
574-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\EventRuleForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
575-
count: 1
576-
path: application/forms/EventRuleForm.php
577-
578-
-
579-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\RemoveEscalationForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
580-
count: 1
581-
path: application/forms/RemoveEscalationForm.php
582-
583-
-
584-
message: "#^Call to an undefined method ipl\\\\Sql\\\\Connection\\:\\:lastInsertId\\(\\)\\.$#"
585-
count: 3
586-
path: application/forms/SaveEventRuleForm.php
587-
588-
-
589-
message: "#^Cannot access property \\$id on mixed\\.$#"
590-
count: 3
591-
path: application/forms/SaveEventRuleForm.php
592-
593-
-
594-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:addRule\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
595-
count: 1
596-
path: application/forms/SaveEventRuleForm.php
597-
598-
-
599-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:assemble\\(\\) has no return type specified\\.$#"
600-
count: 1
601-
path: application/forms/SaveEventRuleForm.php
602-
603-
-
604-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:editRule\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
605-
count: 1
606-
path: application/forms/SaveEventRuleForm.php
607-
608-
-
609-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:insertOrUpdateEscalations\\(\\) has parameter \\$escalations with no value type specified in iterable type array\\.$#"
610-
count: 1
611-
path: application/forms/SaveEventRuleForm.php
612-
613-
-
614-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:insertOrUpdateEscalations\\(\\) has parameter \\$ruleId with no type specified\\.$#"
615-
count: 1
616-
path: application/forms/SaveEventRuleForm.php
617-
618-
-
619-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:onError\\(\\) has no return type specified\\.$#"
620-
count: 1
621-
path: application/forms/SaveEventRuleForm.php
622-
623-
-
624-
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:\\$submitLabel \\(string\\) on left side of \\?\\? is not nullable\\.$#"
625-
count: 1
626-
path: application/forms/SaveEventRuleForm.php
627-
628403
-
629404
message: "#^Call to an undefined method ipl\\\\Sql\\\\Connection\\:\\:lastInsertId\\(\\)\\.$#"
630405
count: 1
@@ -1435,81 +1210,6 @@ parameters:
14351210
count: 1
14361211
path: library/Notifications/Widget/EmptyState.php
14371212

1438-
-
1439-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Escalations\\:\\:addEscalation\\(\\) has no return type specified\\.$#"
1440-
count: 1
1441-
path: library/Notifications/Widget/Escalations.php
1442-
1443-
-
1444-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Escalations\\:\\:addEscalation\\(\\) has parameter \\$escalation with no value type specified in iterable type array\\.$#"
1445-
count: 1
1446-
path: library/Notifications/Widget/Escalations.php
1447-
1448-
-
1449-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Escalations\\:\\:assemble\\(\\) has no return type specified\\.$#"
1450-
count: 1
1451-
path: library/Notifications/Widget/Escalations.php
1452-
1453-
-
1454-
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Escalations\\:\\:\\$config has no type specified\\.$#"
1455-
count: 1
1456-
path: library/Notifications/Widget/Escalations.php
1457-
1458-
-
1459-
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Escalations\\:\\:\\$escalations has no type specified\\.$#"
1460-
count: 1
1461-
path: library/Notifications/Widget/Escalations.php
1462-
1463-
-
1464-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:__construct\\(\\) has parameter \\$config with no type specified\\.$#"
1465-
count: 1
1466-
path: library/Notifications/Widget/EventRuleConfig.php
1467-
1468-
-
1469-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:assemble\\(\\) has no return type specified\\.$#"
1470-
count: 1
1471-
path: library/Notifications/Widget/EventRuleConfig.php
1472-
1473-
-
1474-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:createConditionForm\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#"
1475-
count: 1
1476-
path: library/Notifications/Widget/EventRuleConfig.php
1477-
1478-
-
1479-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:createFilterString\\(\\) has parameter \\$filters with no type specified\\.$#"
1480-
count: 1
1481-
path: library/Notifications/Widget/EventRuleConfig.php
1482-
1483-
-
1484-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:createRecipientForm\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#"
1485-
count: 1
1486-
path: library/Notifications/Widget/EventRuleConfig.php
1487-
1488-
-
1489-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:getConfig\\(\\) return type has no value type specified in iterable type array\\.$#"
1490-
count: 1
1491-
path: library/Notifications/Widget/EventRuleConfig.php
1492-
1493-
-
1494-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:getForms\\(\\) return type has no value type specified in iterable type array\\.$#"
1495-
count: 1
1496-
path: library/Notifications/Widget/EventRuleConfig.php
1497-
1498-
-
1499-
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:setConfig\\(\\) has parameter \\$config with no type specified\\.$#"
1500-
count: 1
1501-
path: library/Notifications/Widget/EventRuleConfig.php
1502-
1503-
-
1504-
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:\\$config type has no value type specified in iterable type array\\.$#"
1505-
count: 1
1506-
path: library/Notifications/Widget/EventRuleConfig.php
1507-
1508-
-
1509-
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventRuleConfig\\:\\:\\$numEscalations is unused\\.$#"
1510-
count: 1
1511-
path: library/Notifications/Widget/EventRuleConfig.php
1512-
15131213
-
15141214
message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\EventSourceBadge\\:\\:assemble\\(\\) has no return type specified\\.$#"
15151215
count: 1
@@ -1545,16 +1245,6 @@ parameters:
15451245
count: 1
15461246
path: library/Notifications/Widget/FlowLine.php
15471247

1548-
-
1549-
message: "#^Cannot access offset 0 on mixed\\.$#"
1550-
count: 1
1551-
path: library/Notifications/Widget/ItemList/ContactListItem.php
1552-
1553-
-
1554-
message: "#^Parameter \\#1 \\$content of static method ipl\\\\Html\\\\Text\\:\\:create\\(\\) expects string, mixed given\\.$#"
1555-
count: 1
1556-
path: library/Notifications/Widget/ItemList/ContactListItem.php
1557-
15581248
-
15591249
message: "#^Parameter \\#2 \\$value of method Icinga\\\\Web\\\\Url\\:\\:setParam\\(\\) expects array\\|bool\\|string, int given\\.$#"
15601250
count: 1
@@ -1825,11 +1515,6 @@ parameters:
18251515
count: 1
18261516
path: library/Notifications/Widget/Schedule.php
18271517

1828-
-
1829-
message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#"
1830-
count: 1
1831-
path: library/Notifications/Widget/Schedule.php
1832-
18331518
-
18341519
message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Schedule\\:\\:\\$schedule \\(Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\) does not accept Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\|null\\.$#"
18351520
count: 1

0 commit comments

Comments
 (0)