Clean up and merge PHPStan baselines

Remove errors no longer reported. Since PHP 7.x is no longer supported, remove
the 7.x baseline. It is now no longer necessary to have multiple baseline
files.
This commit is contained in:
Bastian Lederer 2025-12-03 08:32:16 +01:00 committed by Eric Lippmann
parent 298f52456f
commit 9bd53accac
8 changed files with 22208 additions and 27379 deletions

View file

@ -1,751 +0,0 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$str of function rawurldecode expects string, mixed given\\.$#"
count: 1
path: application/controllers/DashboardController.php
-
message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: application/controllers/ErrorController.php
-
message: "#^Parameter \\#1 \\$str of function rawurldecode expects string, mixed given\\.$#"
count: 1
path: application/controllers/NavigationController.php
-
message: "#^Parameter \\#1 \\$str of function ucwords expects string, mixed given\\.$#"
count: 1
path: application/controllers/NavigationController.php
-
message: "#^Parameter \\#1 \\$str of function sha1 expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/Resource/SshResourceForm.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/User/CreateMembershipForm.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserBackendReorderForm.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/AddMemberForm.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/AddMemberForm.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 2
path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php
-
message: "#^Parameter \\#2 \\$pieces of function implode expects array, mixed given\\.$#"
count: 2
path: application/forms/Navigation/NavigationConfigForm.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, TKey of int\\|string given\\.$#"
count: 2
path: application/forms/Security/RoleForm.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#"
count: 2
path: library/Icinga/Application/ApplicationBootstrap.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Application/ApplicationBootstrap.php
-
message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, array\\{\\$this\\(Icinga\\\\Application\\\\ClassLoader\\), 'loadClass'\\} given\\.$#"
count: 1
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 2
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Hook/HealthHook.php
-
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
count: 1
path: library/Icinga/Application/Hook/TicketHook.php
-
message: "#^Parameter \\#1 \\$str of function ltrim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Libraries/Library.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 2
path: library/Icinga/Application/Logger.php
-
message: "#^Parameter \\#1 \\$str of function strtoupper expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Application/Logger.php
-
message: "#^Parameter \\#1 \\$dir_handle of function closedir expects resource, resource\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$dir_handle of function readdir expects resource, resource\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$str of function rtrim expects string, array\\|string\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Application\\\\Modules\\\\NavigationItemContainer\\), string\\} given\\.$#"
count: 1
path: library/Icinga/Application/Modules/NavigationItemContainer.php
-
message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Platform.php
-
message: "#^Parameter \\#1 \\$input of function array_flip expects array\\<int\\|string\\>, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Test.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Authentication/User/UserBackend.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php
-
message: "#^Parameter \\#1 \\$number of function round expects float, int\\|string given\\.$#"
count: 1
path: library/Icinga/Chart/Donut.php
-
message: "#^Parameter \\#1 \\$str of function strip_tags expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Chart/Graph/Tooltip.php
-
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, Icinga\\\\Chart\\\\Graph\\\\Tooltip given\\.$#"
count: 1
path: library/Icinga/Chart/GridChart.php
-
message: "#^Parameter \\#1 \\$namespace of method DOMImplementation\\:\\:createDocument\\(\\) expects string, null given\\.$#"
count: 1
path: library/Icinga/Chart/SVGRenderer.php
-
message: "#^Parameter \\#1 \\$input of function array_values expects array, array\\|false given\\.$#"
count: 1
path: library/Icinga/Cli/Loader.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|false given\\.$#"
count: 1
path: library/Icinga/Cli/Loader.php
-
message: "#^Parameter \\#2 \\$multiplier of function str_repeat expects int, float given\\.$#"
count: 1
path: library/Icinga/Cli/Screen.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/Db/DbConnection.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/Db/DbConnection.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Data/Filter/Filter.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, bool\\|float\\|int\\|string given\\.$#"
count: 1
path: library/Icinga/Data/Filter/FilterExpression.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/ResourceFactory.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, 'parent\\:\\:__construct' given\\.$#"
count: 1
path: library/Icinga/Exception/Http/HttpException.php
-
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
count: 1
path: library/Icinga/Exception/IcingaException.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/File/Ini/IniWriter.php
-
message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#"
count: 1
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$input of function array_splice expects array, array\\<int\\|string, mixed\\>\\|false given\\.$#"
count: 2
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int\\|string, mixed\\>\\|false given\\.$#"
count: 1
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$dirname of function rmdir expects string, mixed given\\.$#"
count: 1
path: library/Icinga/File/Storage/TemporaryLocalFileStorage.php
-
message: "#^Parameter \\#1 \\$obj of function get_object_vars expects object, mixed given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#4 \\$attrs of callable 'ldap_list'\\|'ldap_read'\\|'ldap_search' expects array, array\\|null given\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapUtils.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/Root.php
-
message: "#^Parameter \\#2 \\$timestamp of function date expects int, float\\|int\\|string given\\.$#"
count: 1
path: library/Icinga/Repository/Repository.php
-
message: "#^Parameter \\#1 \\$array_arg of function natcasesort expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Util/DirectoryIterator.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#"
count: 2
path: library/Icinga/Util/Environment.php
-
message: "#^Parameter \\#2 \\$array of function array_map expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#2 \\$start of function substr expects int, float given\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, float given\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Web\\\\Controller\\\\ActionController\\), non\\-falsy\\-string\\} given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$str of function base64_encode expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$str of function rawurlencode expects string, null given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\<int, mixed\\>, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
count: 1
path: library/Icinga/Web/Controller/StaticController.php
-
message: "#^Parameter \\#2 \\$mode of function mkdir expects int, float\\|int given\\.$#"
count: 2
path: library/Icinga/Web/FileCache.php
-
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Form.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Form/Element/DateTimePicker.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Form/Validator/DateTimeValidator.php
-
message: "#^Parameter \\#1 \\$str of function ltrim expects string, bool\\|string given\\.$#"
count: 1
path: library/Icinga/Web/JavaScript.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/JavaScript.php
-
message: "#^Parameter \\#2 \\$replace of function preg_replace expects array\\|string, int given\\.$#"
count: 1
path: library/Icinga/Web/Navigation/Navigation.php
-
message: "#^Method Icinga\\\\Web\\\\RememberMe\\:\\:getAllByUsername\\(\\) should return array but returns array\\|false\\.$#"
count: 1
path: library/Icinga/Web/RememberMe.php
-
message: "#^Method Icinga\\\\Web\\\\RememberMe\\:\\:getAllUser\\(\\) should return array but returns array\\|false\\.$#"
count: 1
path: library/Icinga/Web/RememberMe.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, false given\\.$#"
count: 2
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, null given\\.$#"
count: 1
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, true given\\.$#"
count: 2
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Widget/SortBox.php
-
message: "#^Parameter \\#1 \\$str of function substr_replace expects array\\|string, string\\|false given\\.$#"
count: 1
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 1
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
count: 1
path: modules/migrate/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$old_name of function rename expects string, int\\|string given\\.$#"
count: 1
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 2
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
-
message: "#^Parameter \\#1 \\$str of function ucfirst expects string, string\\|null given\\.$#"
count: 1
path: modules/monitoring/application/clicommands/ListCommand.php
-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<array\\<string\\>\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/application/controllers/EventController.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 2
path: modules/monitoring/application/controllers/ListController.php
-
message: "#^Parameter \\#1 \\$time of function strtotime expects string, mixed given\\.$#"
count: 2
path: modules/monitoring/application/controllers/TimelineController.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/CheckNowCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ProcessCheckResultCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 3
path: modules/monitoring/application/forms/Command/Object/RemoveAcknowledgementCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostCheckCommandForm.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/application/forms/Config/TransportReorderForm.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 1
path: modules/monitoring/application/views/helpers/PluginOutput.php
-
message: "#^Parameter \\#1 \\$str of function urlencode expects string, array\\|string given\\.$#"
count: 1
path: modules/monitoring/application/views/helpers/PluginOutput.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
-
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
-
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
-
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
-
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#"
count: 2
path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
-
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php
-
message: "#^Cannot access offset string on array\\{command\\: string, pid\\: int, running\\: bool, signaled\\: bool, stopped\\: bool, exitcode\\: int, termsig\\: int, stopsig\\: int\\}\\|false\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Controller.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php
-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<string, int\\|string\\>\\|false given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php
-
message: "#^Parameter \\#1 \\$array_arg of function key expects array\\|object, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Web/Widget/CustomVarTable.php
-
message: "#^Parameter \\#1 \\$file of function file_put_contents expects string, mixed given\\.$#"
count: 1
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#"
count: 7
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#2 \\$mode of function chmod expects int, float\\|int given\\.$#"
count: 1
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$data of function bin2hex expects string, string\\|false given\\.$#"
count: 1
path: modules/setup/application/clicommands/TokenCommand.php
-
message: "#^Parameter \\#1 \\$str of function md5 expects string, int\\<0, max\\> given\\.$#"
count: 1
path: modules/setup/application/clicommands/TokenCommand.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/setup/library/Setup/Requirement/OSRequirement.php
-
message: "#^Parameter \\#1 \\$str of function ucfirst expects string, mixed given\\.$#"
count: 1
path: modules/setup/library/Setup/Requirement/OSRequirement.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#"
count: 1
path: modules/setup/library/Setup/Utils/DbTool.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
count: 1
path: modules/setup/library/Setup/Web/Form/Validator/TokenValidator.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, int given\\.$#"
count: 1
path: modules/translation/library/Translation/Cli/ArrayToTextTableHelper.php
-
message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php

View file

@ -1,31 +0,0 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#"
count: 2
path: library/Icinga/Application/ApplicationBootstrap.php
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#"
count: 2
path: library/Icinga/Util/Environment.php
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, false given\\.$#"
count: 2
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, null given\\.$#"
count: 1
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Session/PhpSession.php
-
message: "#^Parameter \\#2 \\$value of function ini_set expects string, true given\\.$#"
count: 2
path: library/Icinga/Web/Session/PhpSession.php

View file

@ -1,21 +0,0 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#2 \\$result of function ldap_first_entry expects LDAP\\\\Result, array\\|LDAP\\\\Result given\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/LdapCapabilities.php
-
message: "#^Cannot access offset 'dn' on array\\|int\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#2 \\$result of function ldap_count_entries expects LDAP\\\\Result, array\\|LDAP\\\\Result given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#2 \\$result of function ldap_get_entries expects LDAP\\\\Result, array\\|LDAP\\\\Result given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php

View file

@ -1,641 +0,0 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, mixed given\\.$#"
count: 1
path: application/controllers/DashboardController.php
-
message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: application/controllers/ErrorController.php
-
message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, mixed given\\.$#"
count: 1
path: application/controllers/NavigationController.php
-
message: "#^Parameter \\#1 \\$string of function ucwords expects string, mixed given\\.$#"
count: 1
path: application/controllers/NavigationController.php
-
message: "#^Parameter \\#1 \\$string of function sha1 expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/Resource/SshResourceForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/User/CreateMembershipForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserBackendReorderForm.php
-
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/AddMemberForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/AddMemberForm.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 2
path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php
-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#"
count: 2
path: application/forms/Navigation/NavigationConfigForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, TKey of int\\|string given\\.$#"
count: 2
path: application/forms/Security/RoleForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Application/ApplicationBootstrap.php
-
message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(Icinga\\\\Application\\\\ClassLoader\\), 'loadClass'\\} given\\.$#"
count: 1
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
count: 2
path: library/Icinga/Application/ClassLoader.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Hook/HealthHook.php
-
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
count: 1
path: library/Icinga/Application/Hook/TicketHook.php
-
message: "#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Libraries/Library.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 2
path: library/Icinga/Application/Logger.php
-
message: "#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Application/Logger.php
-
message: "#^Parameter \\#1 \\$dir_handle of function closedir expects resource\\|null, resource\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$dir_handle of function readdir expects resource\\|null, resource\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$string of function rtrim expects string, array\\|string\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Modules/Module.php
-
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Application\\\\Modules\\\\NavigationItemContainer\\), string\\} given\\.$#"
count: 1
path: library/Icinga/Application/Modules/NavigationItemContainer.php
-
message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Platform.php
-
message: "#^Parameter \\#1 \\$array of function array_flip expects array\\<int\\|string\\>, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Application/Test.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Authentication/User/UserBackend.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php
-
message: "#^Parameter \\#1 \\$num of function round expects float\\|int, int\\|string given\\.$#"
count: 1
path: library/Icinga/Chart/Donut.php
-
message: "#^Parameter \\#1 \\$string of function strip_tags expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Chart/Graph/Tooltip.php
-
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, Icinga\\\\Chart\\\\Graph\\\\Tooltip given\\.$#"
count: 1
path: library/Icinga/Chart/GridChart.php
-
message: "#^Parameter \\#1 \\$array of function array_values expects array, array\\|false given\\.$#"
count: 1
path: library/Icinga/Cli/Loader.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|false given\\.$#"
count: 1
path: library/Icinga/Cli/Loader.php
-
message: "#^Parameter \\#2 \\$times of function str_repeat expects int, float given\\.$#"
count: 1
path: library/Icinga/Cli/Screen.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/Db/DbConnection.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/Db/DbConnection.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
count: 1
path: library/Icinga/Data/Filter/Filter.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, bool\\|float\\|int\\|string given\\.$#"
count: 1
path: library/Icinga/Data/Filter/FilterExpression.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Data/ResourceFactory.php
-
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, 'parent\\:\\:__construct' given\\.$#"
count: 1
path: library/Icinga/Exception/Http/HttpException.php
-
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
count: 1
path: library/Icinga/Exception/IcingaException.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/File/Ini/IniWriter.php
-
message: "#^Parameter \\#1 \\$array of function array_splice expects array, array\\<int\\|string, mixed\\>\\|false given\\.$#"
count: 2
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#"
count: 1
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<int\\|string, mixed\\>\\|false given\\.$#"
count: 1
path: library/Icinga/File/Storage/LocalFileStorage.php
-
message: "#^Parameter \\#1 \\$directory of function rmdir expects string, mixed given\\.$#"
count: 1
path: library/Icinga/File/Storage/TemporaryLocalFileStorage.php
-
message: "#^Function ldap_control_paged_result not found\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Function ldap_control_paged_result_response not found\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#1 \\$object of function get_object_vars expects object, mixed given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#4 \\$attributes of callable 'ldap_list'\\|'ldap_read'\\|'ldap_search' expects array, array\\|null given\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/LdapConnection.php
-
message: "#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int given\\.$#"
count: 1
path: library/Icinga/Protocol/Ldap/LdapUtils.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 2
path: library/Icinga/Protocol/Ldap/Root.php
-
message: "#^Parameter \\#2 \\$timestamp of function date expects int\\|null, float\\|int\\|string given\\.$#"
count: 1
path: library/Icinga/Repository/Repository.php
-
message: "#^Parameter \\#1 \\$array of function natcasesort expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: library/Icinga/Util/DirectoryIterator.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, string given\\.$#"
count: 2
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#2 \\$offset of function substr expects int, float given\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, float given\\.$#"
count: 1
path: library/Icinga/Util/StringHelper.php
-
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Web\\\\Controller\\\\ActionController\\), non\\-falsy\\-string\\} given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, null given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#2 \\$args of function call_user_func_array expects array\\<int\\|string, mixed\\>, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Controller/ActionController.php
-
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: library/Icinga/Web/Controller/StaticController.php
-
message: "#^Parameter \\#2 \\$permissions of function mkdir expects int, float\\|int given\\.$#"
count: 2
path: library/Icinga/Web/FileCache.php
-
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Form.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Form/Element/DateTimePicker.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Form/Validator/DateTimeValidator.php
-
message: "#^Parameter \\#1 \\$string of function ltrim expects string, bool\\|string given\\.$#"
count: 1
path: library/Icinga/Web/JavaScript.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
count: 1
path: library/Icinga/Web/JavaScript.php
-
message: "#^Parameter \\#2 \\$replacement of function preg_replace expects array\\|string, int given\\.$#"
count: 1
path: library/Icinga/Web/Navigation/Navigation.php
-
message: "#^Parameter \\#2 \\$timestamp of function date expects int\\|null, int\\|false given\\.$#"
count: 1
path: library/Icinga/Web/Widget/Chart/HistoryColorGrid.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: library/Icinga/Web/Widget/SortBox.php
-
message: "#^Parameter \\#1 \\$string of function substr_replace expects array\\|string, string\\|false given\\.$#"
count: 1
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
count: 1
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
count: 1
path: modules/migrate/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$from of function rename expects string, int\\|string given\\.$#"
count: 1
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 2
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
-
message: "#^Parameter \\#1 \\$string of function ucfirst expects string, string\\|null given\\.$#"
count: 1
path: modules/monitoring/application/clicommands/ListCommand.php
-
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<array\\<string\\>\\>\\|null given\\.$#"
count: 1
path: modules/monitoring/application/controllers/EventController.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 2
path: modules/monitoring/application/controllers/ListController.php
-
message: "#^Parameter \\#1 \\$datetime of function strtotime expects string, mixed given\\.$#"
count: 2
path: modules/monitoring/application/controllers/TimelineController.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/CheckNowCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ProcessCheckResultCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 3
path: modules/monitoring/application/forms/Command/Object/RemoveAcknowledgementCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostCheckCommandForm.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 1
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
count: 2
path: modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/application/forms/Config/TransportReorderForm.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
count: 1
path: modules/monitoring/application/views/helpers/PluginOutput.php
-
message: "#^Parameter \\#1 \\$string of function urlencode expects string, array\\|string given\\.$#"
count: 1
path: modules/monitoring/application/views/helpers/PluginOutput.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
-
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
-
message: "#^Parameter \\#1 \\$array of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#"
count: 2
path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
-
message: "#^Parameter \\#1 \\$array of function array_pop expects array, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Controller.php
-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php
-
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<string, int\\|string\\>\\|false given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php
-
message: "#^Parameter \\#1 \\$array of function key expects array\\|object, mixed given\\.$#"
count: 1
path: modules/monitoring/library/Monitoring/Web/Widget/CustomVarTable.php
-
message: "#^Parameter \\#1 \\$filename of function file_put_contents expects string, mixed given\\.$#"
count: 1
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#"
count: 7
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#2 \\$permissions of function chmod expects int, float\\|int given\\.$#"
count: 1
path: modules/setup/application/clicommands/ConfigCommand.php
-
message: "#^Parameter \\#1 \\$string of function md5 expects string, int\\<0, max\\> given\\.$#"
count: 1
path: modules/setup/application/clicommands/TokenCommand.php
-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
count: 1
path: modules/setup/library/Setup/Requirement/OSRequirement.php
-
message: "#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#"
count: 1
path: modules/setup/library/Setup/Requirement/OSRequirement.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#"
count: 1
path: modules/setup/library/Setup/Utils/DbTool.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
count: 1
path: modules/setup/library/Setup/Web/Form/Validator/TokenValidator.php
-
message: "#^Parameter \\#1 \\$callback of function ob_start expects callable\\(\\)\\: mixed, null given\\.$#"
count: 1
path: modules/translation/library/Translation/Cli/ArrayToTextTableHelper.php
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, int given\\.$#"
count: 1
path: modules/translation/library/Translation/Cli/ArrayToTextTableHelper.php
-
message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
count: 1
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php

View file

@ -1,18 +0,0 @@
<?php
$includes = [];
if (PHP_VERSION_ID < 80000) {
$includes[] = __DIR__ . '/phpstan-baseline-7x.neon';
} elseif (PHP_VERSION_ID < 80100) {
$includes[] = __DIR__ . '/phpstan-baseline-8.0.neon';
} else {
$includes[] = __DIR__ . '/phpstan-baseline-8.1+.neon';
}
if (PHP_VERSION_ID >= 80000) {
$includes[] = __DIR__ . '/phpstan-baseline-8x.neon';
}
return [
'includes' => $includes
];

File diff suppressed because it is too large Load diff

22207
phpstan-baseline.neon Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,5 @@
includes:
- phpstan-baseline-standard.neon
- phpstan-baseline-by-php-version.php
- phpstan-baseline.neon
parameters:
level: max
@ -14,13 +13,11 @@ parameters:
- library/Icinga
- modules/doc/application
- modules/migrate/application
- modules/monitoring/application
- modules/setup/application
- modules/test/application
- modules/translation/application
- modules/doc/library
- modules/migrate/library
- modules/monitoring/library
- modules/setup/library
- modules/translation/library
@ -40,7 +37,5 @@ parameters:
- ipl\Orm\Model
- Icinga\Data\ConfigObject
- Icinga\Web\View
- Icinga\Module\Monitoring\Object\MonitoredObject
- Icinga\Module\Monitoring\DataView\DataView
- Icinga\Web\Session\SessionNamespace
- Icinga\User\Preferences