From 5541f2ed5f980c82394f81b33cb8eaf0e4bd3ad9 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Thu, 2 May 2024 16:55:20 +0200 Subject: [PATCH] phpstan: Update baseline --- phpstan-baseline-standard.neon | 299 ++++++--------------------------- 1 file changed, 52 insertions(+), 247 deletions(-) diff --git a/phpstan-baseline-standard.neon b/phpstan-baseline-standard.neon index 1a449e551..b11e89fa7 100644 --- a/phpstan-baseline-standard.neon +++ b/phpstan-baseline-standard.neon @@ -1,10 +1,5 @@ parameters: ignoreErrors: - - - message: "#^Cannot access property \\$name on ipl\\\\Orm\\\\Model\\|null\\.$#" - count: 1 - path: application/controllers/ChannelController.php - - message: "#^Cannot call method getName\\(\\) on ipl\\\\Html\\\\Contract\\\\FormSubmitElement\\|null\\.$#" count: 1 @@ -15,11 +10,6 @@ parameters: count: 1 path: application/controllers/ChannelController.php - - - message: "#^Parameter \\#1 \\$values of method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\ChannelForm\\:\\:populate\\(\\) expects iterable\\, ipl\\\\Orm\\\\Model\\|null given\\.$#" - count: 1 - path: application/controllers/ChannelController.php - - message: "#^Parameter \\#2 \\$channelId of class Icinga\\\\Module\\\\Notifications\\\\Forms\\\\ChannelForm constructor expects int\\|null, mixed given\\.$#" count: 1 @@ -32,7 +22,7 @@ parameters: - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" - count: 3 + count: 2 path: application/controllers/ChannelController.php - @@ -65,21 +55,11 @@ parameters: count: 1 path: application/controllers/ConfigController.php - - - message: "#^Cannot access property \\$full_name on ipl\\\\Orm\\\\Model\\|null\\.$#" - count: 1 - path: application/controllers/ContactController.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Controllers\\\\ContactController\\:\\:indexAction\\(\\) has no return type specified\\.$#" count: 1 path: application/controllers/ContactController.php - - - message: "#^Parameter \\#1 \\$values of method Icinga\\\\Module\\\\Notifications\\\\Web\\\\Form\\\\ContactForm\\:\\:populate\\(\\) expects iterable\\, ipl\\\\Orm\\\\Model\\|null given\\.$#" - count: 1 - path: application/controllers/ContactController.php - - message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#" count: 1 @@ -87,7 +67,7 @@ parameters: - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" - count: 3 + count: 2 path: application/controllers/ContactController.php - @@ -265,6 +245,21 @@ parameters: count: 1 path: application/controllers/SchedulesController.php + - + message: "#^Cannot access property \\$name on Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\|null\\.$#" + count: 1 + path: application/controllers/SourceController.php + + - + message: "#^Cannot cast mixed to int\\.$#" + count: 1 + path: application/controllers/SourceController.php + + - + message: "#^Parameter \\#1 \\$values of method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SourceForm\\:\\:populate\\(\\) expects Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\|iterable\\, Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\|null given\\.$#" + count: 1 + path: application/controllers/SourceController.php + - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\AddEscalationForm\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 @@ -300,11 +295,6 @@ parameters: count: 1 path: application/forms/ChannelForm.php - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" - count: 1 - path: application/forms/ChannelForm.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\DatabaseConfigForm\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 @@ -431,7 +421,7 @@ parameters: path: application/forms/EntryForm.php - - message: "#^Method class@anonymous/application/forms/EntryForm\\.php\\:142\\:\\:assemble\\(\\) has no return type specified\\.$#" + message: "#^Method class@anonymous/application/forms/EntryForm\\.php\\:144\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 path: application/forms/EntryForm.php @@ -595,11 +585,6 @@ parameters: count: 1 path: application/forms/SaveEventRuleForm.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:insertOrUpdateEscalations\\(\\) has parameter \\$ruleId with no type specified\\.$#" - count: 1 - path: application/forms/SaveEventRuleForm.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Forms\\\\SaveEventRuleForm\\:\\:onError\\(\\) has no return type specified\\.$#" count: 1 @@ -660,11 +645,6 @@ parameters: count: 1 path: library/Notifications/Model/Behavior/HasAddress.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Channel\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Channel.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Channel\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -680,16 +660,6 @@ parameters: count: 1 path: library/Notifications/Model/Channel.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Contact.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Contact.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -705,56 +675,16 @@ parameters: count: 1 path: library/Notifications/Model/Contact.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ContactAddress\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/ContactAddress.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contactgroup\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Contactgroup.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Event.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Event.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/Event.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:getDefaultSort\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: library/Notifications/Model/Event.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:getSearchColumns\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/Event.php - - - message: "#^Parameter \\#1 \\$severity of static method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:mapSeverity\\(\\) expects string\\|null, mixed given\\.$#" - count: 1 - path: library/Notifications/Model/Event.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Incident\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Incident.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Incident\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Incident.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Incident\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -770,25 +700,15 @@ parameters: count: 1 path: library/Notifications/Model/Incident.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentContact\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/IncidentContact.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentContact\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/IncidentContact.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentHistory\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentContact\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 - path: library/Notifications/Model/IncidentHistory.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentHistory\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/IncidentHistory.php + path: library/Notifications/Model/IncidentContact.php - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentHistory\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" @@ -801,29 +721,14 @@ parameters: path: library/Notifications/Model/IncidentHistory.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ObjectExtraTag\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ObjectExtraTag\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/ObjectExtraTag.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ObjectExtraTag\\:\\:createRelations\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ObjectIdTag\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 - path: library/Notifications/Model/ObjectExtraTag.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Objects\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Objects.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Objects\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Objects.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Rule\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Rule.php + path: library/Notifications/Model/ObjectIdTag.php - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Rule\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" @@ -840,11 +745,6 @@ parameters: count: 1 path: library/Notifications/Model/Rule.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\RuleEscalation\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/RuleEscalation.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\RuleEscalation\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -861,12 +761,17 @@ parameters: path: library/Notifications/Model/RuleEscalation.php - - message: "#^Cannot call method first\\(\\) on mixed\\.$#" - count: 3 + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\:\\:first\\(\\)\\.$#" + count: 1 path: library/Notifications/Model/RuleEscalationRecipient.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\RuleEscalationRecipient\\:\\:createRelations\\(\\) has no return type specified\\.$#" + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contactgroup\\:\\:first\\(\\)\\.$#" + count: 1 + path: library/Notifications/Model/RuleEscalationRecipient.php + + - + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\:\\:first\\(\\)\\.$#" count: 1 path: library/Notifications/Model/RuleEscalationRecipient.php @@ -881,52 +786,32 @@ parameters: path: library/Notifications/Model/RuleEscalationRecipient.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\:\\:createRelations\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/Schedule.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ScheduleMember\\:\\:createRelations\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\ScheduleMember\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/ScheduleMember.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Source.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\:\\:getColumnDefinitions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/Source.php - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\:\\:getDefaultSort\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: library/Notifications/Model/Source.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Source\\:\\:getSearchColumns\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/Source.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Timeperiod\\:\\:createRelations\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/Timeperiod.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\TimeperiodEntry\\:\\:createBehaviors\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Model/TimeperiodEntry.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\TimeperiodEntry\\:\\:createRelations\\(\\) has no return type specified\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\TimeperiodEntry\\:\\:getDefaultSort\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: library/Notifications/Model/TimeperiodEntry.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Model\\\\TimeperiodEntry\\:\\:getDefaultSort\\(\\) return type has no value type specified in iterable type array\\.$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$description\\)\\: Unexpected token \"\\$description\", expected type at offset 261$#" count: 1 path: library/Notifications/Model/TimeperiodEntry.php @@ -980,11 +865,6 @@ parameters: count: 1 path: library/Notifications/Web/Control/SearchBar/ObjectSuggestions.php - - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: library/Notifications/Web/Form/ContactForm.php - - message: "#^Call to an undefined method ipl\\\\Sql\\\\Connection\\:\\:lastInsertId\\(\\)\\.$#" count: 1 @@ -1145,6 +1025,11 @@ parameters: count: 1 path: library/Notifications/Widget/Calendar/BaseGrid.php + - + message: "#^Call to an undefined method ipl\\\\Html\\\\Contract\\\\FormElement\\:\\:addHtml\\(\\)\\.$#" + count: 12 + path: library/Notifications/Widget/Calendar/Controls.php + - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Calendar\\\\Controls\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 @@ -1251,33 +1136,28 @@ parameters: path: library/Notifications/Widget/CheckboxIcon.php - - message: "#^Cannot access property \\$source on mixed\\.$#" + message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Detail\\\\EventDetail\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 path: library/Notifications/Widget/Detail/EventDetail.php - - message: "#^Cannot call method getTimestamp\\(\\) on mixed\\.$#" + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentContact\\:\\:with\\(\\)\\.$#" count: 1 - path: library/Notifications/Widget/Detail/EventDetail.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Detail\\\\EventDetail\\:\\:assemble\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Notifications/Widget/Detail/EventDetail.php + path: library/Notifications/Widget/Detail/IncidentDetail.php - - message: "#^Cannot access property \\$object_extra_tag on mixed\\.$#" + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\IncidentHistory\\:\\:with\\(\\)\\.$#" count: 1 path: library/Notifications/Widget/Detail/IncidentDetail.php - - message: "#^Cannot access property \\$source on mixed\\.$#" + message: "#^Cannot access property \\$tag on mixed\\.$#" count: 1 path: library/Notifications/Widget/Detail/IncidentDetail.php - - message: "#^Cannot call method with\\(\\) on mixed\\.$#" - count: 2 + message: "#^Cannot access property \\$value on mixed\\.$#" + count: 1 path: library/Notifications/Widget/Detail/IncidentDetail.php - @@ -1430,16 +1310,6 @@ parameters: count: 1 path: library/Notifications/Widget/FlowLine.php - - - message: "#^Cannot access offset 0 on mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/ContactListItem.php - - - - message: "#^Parameter \\#1 \\$content of static method ipl\\\\Html\\\\Text\\:\\:create\\(\\) expects string, mixed given\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/ContactListItem.php - - message: "#^Parameter \\#2 \\$value of method Icinga\\\\Web\\\\Url\\:\\:setParam\\(\\) expects array\\|bool\\|string, int given\\.$#" count: 1 @@ -1450,91 +1320,31 @@ parameters: count: 1 path: library/Notifications/Widget/ItemList/EventList.php - - - message: "#^Cannot access property \\$source on mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/EventListItem.php - - - - message: "#^Cannot call method getTimestamp\\(\\) on mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/EventListItem.php - - - - message: "#^Parameter \\#1 \\$id of static method Icinga\\\\Module\\\\Notifications\\\\Common\\\\Links\\:\\:event\\(\\) expects int, mixed given\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/EventListItem.php - - message: "#^Parameter \\#2 \\$value of method Icinga\\\\Web\\\\Url\\:\\:setParam\\(\\) expects array\\|bool\\|string, int given\\.$#" count: 1 path: library/Notifications/Widget/ItemList/EventRuleList.php - - message: "#^Cannot call method count\\(\\) on mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/EventRuleListItem.php - - - - message: "#^Cannot call method first\\(\\) on mixed\\.$#" + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\RuleEscalation\\:\\:count\\(\\)\\.$#" count: 1 path: library/Notifications/Widget/ItemList/EventRuleListItem.php - - message: "#^Parameter \\#1 \\$id of static method Icinga\\\\Module\\\\Notifications\\\\Common\\\\Links\\:\\:eventRule\\(\\) expects int, mixed given\\.$#" + message: "#^Call to an undefined method Icinga\\\\Module\\\\Notifications\\\\Model\\\\RuleEscalation\\:\\:first\\(\\)\\.$#" count: 1 path: library/Notifications/Widget/ItemList/EventRuleListItem.php - - - message: "#^Cannot access property \\$full_name on mixed\\.$#" - count: 5 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Cannot access property \\$name on mixed\\.$#" - count: 9 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Cannot access property \\$object on mixed\\.$#" - count: 2 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Cannot access property \\$type on mixed\\.$#" - count: 3 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Cannot call method getTimestamp\\(\\) on mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\ItemList\\\\IncidentHistoryListItem\\:\\:buildMessage\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\ItemList\\\\IncidentHistoryListItem\\:\\:getIncidentEventIcon\\(\\) should return string but returns string\\|null\\.$#" count: 1 path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - message: "#^Parameter \\#1 \\$id of static method Icinga\\\\Module\\\\Notifications\\\\Common\\\\Links\\:\\:event\\(\\) expects int, mixed given\\.$#" + message: "#^Parameter \\#1 \\$id of static method Icinga\\\\Module\\\\Notifications\\\\Common\\\\Links\\:\\:event\\(\\) expects int, int\\|null given\\.$#" count: 1 path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - message: "#^Parameter \\#1 \\$severity of static method Icinga\\\\Module\\\\Notifications\\\\Model\\\\Event\\:\\:mapSeverity\\(\\) expects string\\|null, mixed given\\.$#" - count: 3 - path: library/Notifications/Widget/ItemList/IncidentHistoryListItem.php - - - - message: "#^Cannot call method getTimestamp\\(\\) on mixed\\.$#" - count: 2 - path: library/Notifications/Widget/ItemList/IncidentListItem.php - - message: "#^Method Icinga\\\\Module\\\\Notifications\\\\Widget\\\\ItemList\\\\PageSeparatorItem\\:\\:assemble\\(\\) has no return type specified\\.$#" count: 1 @@ -1606,12 +1416,12 @@ parameters: path: library/Notifications/Widget/RecipientSuggestions.php - - message: "#^Cannot access property \\$full_name on ipl\\\\Orm\\\\Model\\|null\\.$#" + message: "#^Cannot access property \\$full_name on Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\|Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contactgroup\\|Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\|null\\.$#" count: 1 path: library/Notifications/Widget/RuleEscalationRecipientBadge.php - - message: "#^Cannot access property \\$name on ipl\\\\Orm\\\\Model\\|null\\.$#" + message: "#^Cannot access property \\$name on Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contact\\|Icinga\\\\Module\\\\Notifications\\\\Model\\\\Contactgroup\\|Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\|null\\.$#" count: 1 path: library/Notifications/Widget/RuleEscalationRecipientBadge.php @@ -1685,11 +1495,6 @@ parameters: count: 1 path: library/Notifications/Widget/Schedule.php - - - message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#" - count: 1 - path: library/Notifications/Widget/Schedule.php - - message: "#^Property Icinga\\\\Module\\\\Notifications\\\\Widget\\\\Schedule\\:\\:\\$schedule \\(Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\) does not accept Icinga\\\\Module\\\\Notifications\\\\Model\\\\Schedule\\|null\\.$#" count: 1