From 23dbdcf804b1806536a77e1a5d0dc60f341d4fbe Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 23 Jan 2024 16:57:16 +0100 Subject: [PATCH] Phpstan: Seprate baselines based on php version --- phpstan-baseline-7x.neon | 756 ++++++++++++++++++ phpstan-baseline-8.0.neon | 31 + phpstan-baseline-8.1+.neon | 21 + phpstan-baseline-8x.neon | 646 +++++++++++++++ phpstan-baseline-by-php-version.php | 18 + ...ine.neon => phpstan-baseline-standard.neon | 686 +--------------- phpstan.neon | 26 +- 7 files changed, 1497 insertions(+), 687 deletions(-) create mode 100644 phpstan-baseline-7x.neon create mode 100644 phpstan-baseline-8.0.neon create mode 100644 phpstan-baseline-8.1+.neon create mode 100644 phpstan-baseline-8x.neon create mode 100644 phpstan-baseline-by-php-version.php rename phpstan-baseline.neon => phpstan-baseline-standard.neon (97%) diff --git a/phpstan-baseline-7x.neon b/phpstan-baseline-7x.neon new file mode 100644 index 000000000..12ae232a6 --- /dev/null +++ b/phpstan-baseline-7x.neon @@ -0,0 +1,756 @@ +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\\\\|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\\, array\\ 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\\\\|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\\\\|false given\\.$#" + count: 1 + path: library/Icinga/Application/Platform.php + + - + message: "#^Parameter \\#1 \\$input of function array_flip expects array\\, array\\\\|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\\, array\\ 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\\\\|false given\\.$#" + count: 2 + path: library/Icinga/File/Storage/LocalFileStorage.php + + - + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|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\\\\|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\\\\|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\\, 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 \\#2 \\$timestamp of function date expects int, int\\|false given\\.$#" + count: 1 + path: library/Icinga/Web/Widget/Chart/HistoryColorGrid.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\\\\>\\|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\\\\|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\\\\|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\\\\|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\\\\|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\\\\|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\\\\|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\\\\|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\\\\|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\\\\|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 diff --git a/phpstan-baseline-8.0.neon b/phpstan-baseline-8.0.neon new file mode 100644 index 000000000..d91832802 --- /dev/null +++ b/phpstan-baseline-8.0.neon @@ -0,0 +1,31 @@ +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 diff --git a/phpstan-baseline-8.1+.neon b/phpstan-baseline-8.1+.neon new file mode 100644 index 000000000..b952a7e04 --- /dev/null +++ b/phpstan-baseline-8.1+.neon @@ -0,0 +1,21 @@ +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 diff --git a/phpstan-baseline-8x.neon b/phpstan-baseline-8x.neon new file mode 100644 index 000000000..1bff25d02 --- /dev/null +++ b/phpstan-baseline-8x.neon @@ -0,0 +1,646 @@ +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\\\\|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\\, array\\ 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\\\\|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\\\\|false given\\.$#" + count: 1 + path: library/Icinga/Application/Platform.php + + - + message: "#^Parameter \\#1 \\$array of function array_flip expects array\\, array\\\\|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\\, array\\ 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\\\\|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\\\\|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\\\\|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\\, 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\\\\>\\|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\\\\|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\\\\|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 \\$filename of function file_exists expects string, string\\|false given\\.$#" + count: 1 + path: modules/test/application/clicommands/PhpCommand.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 diff --git a/phpstan-baseline-by-php-version.php b/phpstan-baseline-by-php-version.php new file mode 100644 index 000000000..418114a7d --- /dev/null +++ b/phpstan-baseline-by-php-version.php @@ -0,0 +1,18 @@ += 80000) { + $includes[] = __DIR__ . '/phpstan-baseline-8x.neon'; +} + +return [ + 'includes' => $includes +]; diff --git a/phpstan-baseline.neon b/phpstan-baseline-standard.neon similarity index 97% rename from phpstan-baseline.neon rename to phpstan-baseline-standard.neon index 22a196d1b..500d1fdab 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline-standard.neon @@ -500,11 +500,6 @@ parameters: count: 1 path: application/controllers/DashboardController.php - - - message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, mixed given\\.$#" - count: 1 - path: application/controllers/DashboardController.php - - message: "#^Parameter \\#1 \\$title of class Icinga\\\\Web\\\\Widget\\\\Dashboard\\\\Dashlet constructor expects string, mixed given\\.$#" count: 2 @@ -575,11 +570,6 @@ parameters: count: 1 path: application/controllers/ErrorController.php - - - message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\\\|false given\\.$#" - count: 1 - path: application/controllers/ErrorController.php - - message: "#^Call to an undefined method Icinga\\\\Authentication\\\\UserGroup\\\\UserGroupBackendInterface\\:\\:delete\\(\\)\\.$#" count: 1 @@ -875,16 +865,6 @@ parameters: count: 1 path: application/controllers/NavigationController.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 \\$type of static method Icinga\\\\Application\\\\Config\\:\\:navigation\\(\\) expects string, mixed given\\.$#" count: 6 @@ -1535,11 +1515,6 @@ parameters: count: 1 path: application/forms/Config/Resource/SshResourceForm.php - - - message: "#^Parameter \\#1 \\$string of function sha1 expects string, mixed given\\.$#" - count: 1 - path: application/forms/Config/Resource/SshResourceForm.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 1 @@ -1670,11 +1645,6 @@ parameters: 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/User/CreateMembershipForm.php - - message: "#^Property Icinga\\\\Forms\\\\Config\\\\User\\\\CreateMembershipForm\\:\\:\\$backends type has no value type specified in iterable type array\\.$#" count: 1 @@ -1895,11 +1865,6 @@ parameters: count: 1 path: application/forms/Config/UserBackendReorderForm.php - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" - count: 1 - path: application/forms/Config/UserBackendReorderForm.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -1930,16 +1895,6 @@ parameters: count: 1 path: application/forms/Config/UserGroup/AddMemberForm.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 \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 2 @@ -1960,11 +1915,6 @@ parameters: count: 1 path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 1 - path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php - - message: "#^Call to an undefined method Icinga\\\\Data\\\\Db\\\\DbConnection\\|Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:getHostname\\(\\)\\.$#" count: 1 @@ -2025,11 +1975,6 @@ parameters: count: 1 path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 2 - path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php - - message: "#^Cannot call method setDecorators\\(\\) on Zend_Form_Element\\|null\\.$#" count: 1 @@ -2340,11 +2285,6 @@ parameters: count: 2 path: application/forms/Navigation/NavigationConfigForm.php - - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#" - count: 2 - path: application/forms/Navigation/NavigationConfigForm.php - - message: "#^Parameter \\#2 \\$owner of method Icinga\\\\Forms\\\\Navigation\\\\NavigationConfigForm\\:\\:listAvailableParents\\(\\) expects string\\|null, mixed given\\.$#" count: 1 @@ -2680,11 +2620,6 @@ parameters: count: 1 path: application/forms/Security/RoleForm.php - - - message: "#^Parameter \\#2 \\$string of function explode expects string, TKey of int\\|string given\\.$#" - count: 2 - path: application/forms/Security/RoleForm.php - - message: "#^Property Icinga\\\\Forms\\\\Security\\\\RoleForm\\:\\:\\$providedPermissions type has no value type specified in iterable type array\\.$#" count: 1 @@ -2856,12 +2791,7 @@ parameters: path: library/Icinga/Application/ApplicationBootstrap.php - - message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(non\\-empty\\-string\\|false\\)\\: mixed, 'is_dir' given\\.$#" - count: 1 - path: library/Icinga/Application/ApplicationBootstrap.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: "#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(non\\-empty\\-string\\|false\\)\\: bool\\)\\|null, 'is_dir' given\\.$#" count: 1 path: library/Icinga/Application/ApplicationBootstrap.php @@ -2960,21 +2890,6 @@ parameters: count: 1 path: library/Icinga/Application/ClassLoader.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: "#^Property Icinga\\\\Application\\\\ClassLoader\\:\\:\\$applicationDirectories type has no value type specified in iterable type array\\.$#" count: 1 @@ -3300,6 +3215,11 @@ parameters: count: 1 path: library/Icinga/Application/Hook/AuthenticationHook.php + - + message: "#^Call to an undefined method ipl\\\\Sql\\\\Connection\\:\\:exec\\(\\)\\.$#" + count: 1 + path: library/Icinga/Application/Hook/Common/DbMigrationStep.php + - message: "#^Method Icinga\\\\Application\\\\Hook\\\\ConfigFormEventsHook\\:\\:getLastErrors\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -3345,11 +3265,6 @@ parameters: count: 1 path: library/Icinga/Application/Hook/HealthHook.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: "#^Property Icinga\\\\Application\\\\Hook\\\\HealthHook\\:\\:\\$metrics type has no value type specified in iterable type array\\.$#" count: 1 @@ -3410,11 +3325,6 @@ parameters: count: 1 path: library/Icinga/Application/Hook/TicketHook.php - - - message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\, array\\ given\\.$#" - count: 1 - path: library/Icinga/Application/Hook/TicketHook.php - - message: "#^Access to an undefined property Zend_Controller_Action_Helper_Abstract\\:\\:\\$view\\.$#" count: 1 @@ -3460,11 +3370,6 @@ parameters: count: 1 path: library/Icinga/Application/Libraries/Library.php - - - message: "#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#" - count: 1 - path: library/Icinga/Application/Libraries/Library.php - - message: "#^Parameter \\#2 \\$pieces of function join expects array, array\\\\|false given\\.$#" count: 1 @@ -3525,16 +3430,6 @@ parameters: count: 5 path: library/Icinga/Application/Logger.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: "#^Property Icinga\\\\Application\\\\Logger\\:\\:\\$configErrors type has no value type specified in iterable type array\\.$#" count: 1 @@ -3900,26 +3795,6 @@ parameters: count: 1 path: library/Icinga/Application/Modules/Module.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\\\\|false given\\.$#" - count: 1 - path: library/Icinga/Application/Modules/Module.php - - message: "#^Property Icinga\\\\Application\\\\Modules\\\\Module\\:\\:\\$app \\(Icinga\\\\Application\\\\Web\\) does not accept Icinga\\\\Application\\\\ApplicationBootstrap\\.$#" count: 1 @@ -4005,11 +3880,6 @@ parameters: count: 1 path: library/Icinga/Application/Modules/NavigationItemContainer.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 \\#2 \\$pieces of function join expects array, array\\\\|false given\\.$#" count: 1 @@ -4030,11 +3900,6 @@ parameters: count: 1 path: library/Icinga/Application/Platform.php - - - message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\\\|false given\\.$#" - count: 1 - path: library/Icinga/Application/Platform.php - - message: "#^Parameter \\#1 \\$hostname of function gethostbyname expects string, string\\|false given\\.$#" count: 1 @@ -4070,11 +3935,6 @@ parameters: count: 1 path: library/Icinga/Application/Test.php - - - message: "#^Parameter \\#1 \\$array of function array_flip expects array\\, array\\\\|false given\\.$#" - count: 1 - path: library/Icinga/Application/Test.php - - message: "#^Property Icinga\\\\Application\\\\Test\\:\\:\\$request \\(Icinga\\\\Web\\\\Request\\) in isset\\(\\) is not nullable\\.$#" count: 2 @@ -4630,11 +4490,6 @@ parameters: 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/User/UserBackend.php - - message: "#^Parameter \\#1 \\$userClass of method Icinga\\\\Authentication\\\\User\\\\LdapUserBackend\\:\\:setUserClass\\(\\) expects string, mixed given\\.$#" count: 2 @@ -4945,11 +4800,6 @@ parameters: count: 1 path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 1 - path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php - - message: "#^Property Icinga\\\\Authentication\\\\UserGroup\\\\UserGroupBackend\\:\\:\\$customBackends type has no value type specified in iterable type array\\.$#" count: 1 @@ -5145,11 +4995,6 @@ parameters: count: 1 path: library/Icinga/Chart/Donut.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 strlen expects string, int\\|string given\\.$#" count: 1 @@ -5370,11 +5215,6 @@ parameters: count: 1 path: library/Icinga/Chart/Graph/Tooltip.php - - - message: "#^Parameter \\#1 \\$string of function strip_tags expects string, mixed given\\.$#" - count: 1 - path: library/Icinga/Chart/Graph/Tooltip.php - - message: "#^Property Icinga\\\\Chart\\\\Graph\\\\Tooltip\\:\\:\\$data type has no value type specified in iterable type array\\.$#" count: 1 @@ -5470,11 +5310,6 @@ parameters: count: 1 path: library/Icinga/Chart/GridChart.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 \\#4 \\$height of class Icinga\\\\Chart\\\\Primitive\\\\Rect constructor expects int, float given\\.$#" count: 1 @@ -6565,11 +6400,6 @@ parameters: count: 1 path: library/Icinga/Cli/Documentation/CommentParser.php - - - message: "#^Cannot access an offset on array\\|float\\|int\\|string\\|false\\|null\\.$#" - count: 1 - path: library/Icinga/Cli/Documentation/CommentParser.php - - message: "#^Method Icinga\\\\Cli\\\\Documentation\\\\CommentParser\\:\\:__construct\\(\\) has parameter \\$raw with no type specified\\.$#" count: 1 @@ -6590,18 +6420,13 @@ parameters: count: 1 path: library/Icinga/Cli/Documentation/CommentParser.php - - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|null given\\.$#" - count: 1 - path: library/Icinga/Cli/Documentation/CommentParser.php - - message: "#^Parameter \\#2 \\$subject of function preg_split expects string, array\\\\|string\\|null given\\.$#" count: 1 path: library/Icinga/Cli/Documentation/CommentParser.php - - message: "#^Property Icinga\\\\Cli\\\\Documentation\\\\CommentParser\\:\\:\\$paragraphs has no type specified\\.$#" + message: "#^Property Icinga\\\\Cli\\\\Documentation\\\\CommentParser\\:\\:\\$paragraphs type has no value type specified in iterable type array\\.$#" count: 1 path: library/Icinga/Cli/Documentation/CommentParser.php @@ -6885,11 +6710,6 @@ parameters: count: 1 path: library/Icinga/Cli/Loader.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 \\$string of function strlen expects string, string\\|null given\\.$#" count: 1 @@ -6900,11 +6720,6 @@ parameters: 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 \\$return of function var_export expects bool, int given\\.$#" count: 1 @@ -7165,11 +6980,6 @@ parameters: count: 1 path: library/Icinga/Cli/Screen.php - - - message: "#^Parameter \\#2 \\$times of function str_repeat expects int, float given\\.$#" - count: 1 - path: library/Icinga/Cli/Screen.php - - message: "#^Property Icinga\\\\Cli\\\\Screen\\:\\:\\$instances has no type specified\\.$#" count: 1 @@ -7395,16 +7205,6 @@ parameters: count: 1 path: library/Icinga/Data/Db/DbConnection.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 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 3 @@ -7840,11 +7640,6 @@ parameters: count: 3 path: library/Icinga/Data/Filter/Filter.php - - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" - count: 1 - path: library/Icinga/Data/Filter/Filter.php - - message: "#^Property Icinga\\\\Data\\\\Filter\\\\Filter\\:\\:\\$id has no type specified\\.$#" count: 1 @@ -8170,11 +7965,6 @@ parameters: count: 1 path: library/Icinga/Data/Filter/FilterExpression.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 \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" count: 1 @@ -8595,11 +8385,6 @@ parameters: count: 1 path: library/Icinga/Data/ResourceFactory.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 1 - path: library/Icinga/Data/ResourceFactory.php - - message: "#^Cannot call method count\\(\\) on mixed\\.$#" count: 1 @@ -8860,11 +8645,6 @@ parameters: count: 1 path: library/Icinga/Exception/Http/HttpException.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: "#^Method Icinga\\\\Exception\\\\Http\\\\HttpExceptionInterface\\:\\:getHeaders\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -8890,11 +8670,6 @@ parameters: count: 1 path: library/Icinga/Exception/IcingaException.php - - - message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\, array\\ given\\.$#" - count: 1 - path: library/Icinga/Exception/IcingaException.php - - message: "#^Method Icinga\\\\File\\\\Csv\\:\\:dump\\(\\) has no return type specified\\.$#" count: 1 @@ -9100,11 +8875,6 @@ parameters: count: 1 path: library/Icinga/File/Ini/IniWriter.php - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" - count: 1 - path: library/Icinga/File/Ini/IniWriter.php - - message: "#^Property Icinga\\\\File\\\\Ini\\\\IniWriter\\:\\:\\$options type has no value type specified in iterable type array\\.$#" count: 1 @@ -9165,21 +8935,6 @@ parameters: count: 1 path: library/Icinga/File/Storage/LocalFileStorage.php - - - message: "#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|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\\\\|false given\\.$#" - count: 1 - path: library/Icinga/File/Storage/LocalFileStorage.php - - message: "#^Interface Icinga\\\\File\\\\Storage\\\\StorageInterface extends generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#" count: 1 @@ -9205,11 +8960,6 @@ parameters: count: 1 path: library/Icinga/File/Storage/StorageInterface.php - - - message: "#^Parameter \\#1 \\$directory of function rmdir expects string, mixed given\\.$#" - count: 1 - path: library/Icinga/File/Storage/TemporaryLocalFileStorage.php - - message: "#^Parameter \\#1 \\$filename of function unlink expects string, mixed given\\.$#" count: 1 @@ -9765,16 +9515,6 @@ parameters: count: 2 path: library/Icinga/Protocol/Ldap/LdapConnection.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: "#^Left side of && is always false\\.$#" count: 3 @@ -9885,6 +9625,16 @@ parameters: count: 1 path: library/Icinga/Protocol/Ldap/LdapConnection.php + - + message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:getConnection\\(\\) has no return type specified\\.$#" + count: 1 + path: library/Icinga/Protocol/Ldap/LdapConnection.php + + - + message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:ldapSearch\\(\\) has no return type specified\\.$#" + count: 1 + path: library/Icinga/Protocol/Ldap/LdapConnection.php + - message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:ldapSearch\\(\\) has parameter \\$attributes with no value type specified in iterable type array\\.$#" count: 1 @@ -9906,12 +9656,7 @@ parameters: path: library/Icinga/Protocol/Ldap/LdapConnection.php - - message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:normalizeHostname\\(\\) has no return type specified\\.$#" - count: 1 - path: library/Icinga/Protocol/Ldap/LdapConnection.php - - - - message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:normalizeHostname\\(\\) has parameter \\$hostname with no type specified\\.$#" + message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:prepareNewConnection\\(\\) has no return type specified\\.$#" count: 1 path: library/Icinga/Protocol/Ldap/LdapConnection.php @@ -9965,16 +9710,6 @@ parameters: 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 \\#2 \\$code of class LogicException constructor expects int, string given\\.$#" count: 1 @@ -9985,11 +9720,6 @@ parameters: count: 2 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: "#^Property Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:\\$bindDn \\(string\\) does not accept mixed\\.$#" count: 1 @@ -10000,6 +9730,11 @@ parameters: count: 1 path: library/Icinga/Protocol/Ldap/LdapConnection.php + - + message: "#^Property Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:\\$ds has no type specified\\.$#" + count: 1 + path: library/Icinga/Protocol/Ldap/LdapConnection.php + - message: "#^Property Icinga\\\\Protocol\\\\Ldap\\\\LdapConnection\\:\\:\\$encryption \\(string\\) does not accept mixed\\.$#" count: 1 @@ -10150,11 +9885,6 @@ parameters: count: 1 path: library/Icinga/Protocol/Ldap/LdapUtils.php - - - message: "#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int given\\.$#" - count: 1 - path: library/Icinga/Protocol/Ldap/LdapUtils.php - - message: "#^Method Icinga\\\\Protocol\\\\Ldap\\\\Node\\:\\:createWithRDN\\(\\) has parameter \\$parent with no type specified\\.$#" count: 1 @@ -10230,11 +9960,6 @@ parameters: count: 3 path: library/Icinga/Protocol/Ldap/Root.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 2 - path: library/Icinga/Protocol/Ldap/Root.php - - message: "#^Property Icinga\\\\Protocol\\\\Ldap\\\\Root\\:\\:\\$children type has no value type specified in iterable type array\\.$#" count: 1 @@ -10935,11 +10660,6 @@ parameters: count: 4 path: library/Icinga/Repository/Repository.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 \\#4 \\$filter of method Icinga\\\\Repository\\\\Repository\\:\\:requireFilterColumn\\(\\) expects Icinga\\\\Data\\\\Filter\\\\FilterExpression\\|null, Icinga\\\\Data\\\\Filter\\\\Filter given\\.$#" count: 1 @@ -11470,11 +11190,6 @@ parameters: count: 1 path: library/Icinga/Util/DirectoryIterator.php - - - message: "#^Parameter \\#1 \\$array of function natcasesort expects array, array\\\\|false given\\.$#" - count: 1 - path: library/Icinga/Util/DirectoryIterator.php - - message: "#^Parameter \\#1 \\$path of static method Icinga\\\\Util\\\\DirectoryIterator\\:\\:isReadable\\(\\) expects string, string\\|false given\\.$#" count: 1 @@ -11710,11 +11425,6 @@ parameters: count: 1 path: library/Icinga/Util/Json.php - - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" - count: 1 - path: library/Icinga/Util/StringHelper.php - - message: "#^Method Icinga\\\\Util\\\\StringHelper\\:\\:cartesianProduct\\(\\) has no return type specified\\.$#" count: 1 @@ -11740,21 +11450,6 @@ parameters: 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: "#^Method Icinga\\\\Util\\\\TimezoneDetect\\:\\:reset\\(\\) has no return type specified\\.$#" count: 1 @@ -12085,31 +11780,11 @@ parameters: count: 1 path: library/Icinga/Web/Controller/ActionController.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 \\#1 \\$title of method Icinga\\\\Module\\\\Pdfexport\\\\PrintableHtmlDocument\\:\\:setTitle\\(\\) 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\\, mixed given\\.$#" - count: 1 - path: library/Icinga/Web/Controller/ActionController.php - - message: "#^Parameter \\#2 \\$args of method Zend_Controller_Action\\:\\:__call\\(\\) expects array, mixed given\\.$#" count: 1 @@ -12265,11 +11940,6 @@ parameters: count: 1 path: library/Icinga/Web/Controller/StaticController.php - - - message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#" - count: 1 - path: library/Icinga/Web/Controller/StaticController.php - - message: "#^Call to an undefined method Icinga\\\\Application\\\\ApplicationBootstrap\\:\\:getRequest\\(\\)\\.$#" count: 2 @@ -12355,11 +12025,6 @@ parameters: count: 1 path: library/Icinga/Web/FileCache.php - - - message: "#^Parameter \\#2 \\$permissions of function mkdir expects int, float\\|int given\\.$#" - count: 2 - path: library/Icinga/Web/FileCache.php - - message: "#^Property Icinga\\\\Web\\\\FileCache\\:\\:\\$instances type has no value type specified in iterable type array\\.$#" count: 1 @@ -12565,11 +12230,6 @@ parameters: count: 3 path: library/Icinga/Web/Form.php - - - message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" - count: 1 - path: library/Icinga/Web/Form.php - - message: "#^Parameter \\#2 \\$name of method Zend_Form\\:\\:addSubForm\\(\\) expects string, string\\|null given\\.$#" count: 1 @@ -12765,11 +12425,6 @@ parameters: 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/Element/DateTimePicker.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 1 @@ -12850,11 +12505,6 @@ parameters: count: 1 path: library/Icinga/Web/Form/Validator/DateFormatValidator.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: "#^Property Icinga\\\\Web\\\\Form\\\\Validator\\\\DateTimeValidator\\:\\:\\$_messageTemplates type has no value type specified in iterable type array\\.$#" count: 1 @@ -13035,11 +12685,6 @@ parameters: count: 2 path: library/Icinga/Web/JavaScript.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 strlen expects string, string\\|false given\\.$#" count: 1 @@ -13050,11 +12695,6 @@ parameters: 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 \\$subject of function preg_match expects string, mixed given\\.$#" count: 1 @@ -13360,11 +13000,6 @@ parameters: count: 1 path: library/Icinga/Web/Navigation/Navigation.php - - - message: "#^Parameter \\#2 \\$replacement of function preg_replace expects array\\|string, int given\\.$#" - count: 1 - path: library/Icinga/Web/Navigation/Navigation.php - - message: "#^Property Icinga\\\\Web\\\\Navigation\\\\Navigation\\:\\:\\$items \\(array\\\\) does not accept array\\.$#" count: 1 @@ -14790,11 +14425,6 @@ parameters: count: 1 path: library/Icinga/Web/Widget/Chart/HistoryColorGrid.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: "#^Property Icinga\\\\Web\\\\Widget\\\\Chart\\\\HistoryColorGrid\\:\\:\\$color has no type specified\\.$#" count: 1 @@ -15750,11 +15380,6 @@ parameters: count: 1 path: library/Icinga/Web/Widget/SortBox.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 1 - path: library/Icinga/Web/Widget/SortBox.php - - message: "#^Property Icinga\\\\Web\\\\Widget\\\\SortBox\\:\\:\\$sortDefaults \\(array\\) does not accept array\\|null\\.$#" count: 1 @@ -16710,16 +16335,6 @@ parameters: count: 1 path: modules/doc/library/Doc/Renderer/DocSectionRenderer.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 \\#3 \\$subject of function preg_replace_callback expects array\\|string, array\\\\|string\\|null given\\.$#" count: 3 @@ -16845,11 +16460,6 @@ parameters: count: 1 path: modules/migrate/application/clicommands/ConfigCommand.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 \\$username of class Icinga\\\\User constructor expects string, mixed given\\.$#" count: 1 @@ -16965,21 +16575,11 @@ parameters: count: 1 path: modules/migrate/library/Migrate/Config/UserDomainMigration.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 \\$path of function dirname expects string, mixed 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 \\$username of class Icinga\\\\User constructor expects string, mixed given\\.$#" count: 1 @@ -17140,11 +16740,6 @@ parameters: count: 1 path: modules/monitoring/application/clicommands/ListCommand.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 \\$subject of function preg_split expects string, mixed given\\.$#" count: 1 @@ -17410,11 +17005,6 @@ parameters: count: 1 path: modules/monitoring/application/controllers/EventController.php - - - message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\>\\|null given\\.$#" - count: 1 - path: modules/monitoring/application/controllers/EventController.php - - message: "#^Cannot access property \\$hosts_down_unhandled on mixed\\.$#" count: 1 @@ -17685,11 +17275,6 @@ parameters: count: 1 path: modules/monitoring/application/controllers/ListController.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 2 - path: modules/monitoring/application/controllers/ListController.php - - message: "#^Parameter \\#2 \\$default of method Icinga\\\\Web\\\\UrlParams\\:\\:shift\\(\\) expects string\\|null, false given\\.$#" count: 1 @@ -17945,11 +17530,6 @@ parameters: count: 1 path: modules/monitoring/application/controllers/TimelineController.php - - - message: "#^Parameter \\#1 \\$datetime of function strtotime expects string, mixed given\\.$#" - count: 2 - path: modules/monitoring/application/controllers/TimelineController.php - - message: "#^Parameter \\#1 \\$name of method Icinga\\\\Application\\\\Config\\:\\:getSection\\(\\) expects string, mixed given\\.$#" count: 1 @@ -18075,11 +17655,6 @@ parameters: count: 1 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/AcknowledgeProblemCommandForm.php - - message: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18125,11 +17700,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18140,11 +17710,6 @@ parameters: 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: 1 - path: modules/monitoring/application/forms/Command/Object/CheckNowCommandForm.php - - message: "#^Cannot call method getUsername\\(\\) on Icinga\\\\User\\|null\\.$#" count: 1 @@ -18395,11 +17960,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Command/Object/ProcessCheckResultCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18415,11 +17975,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Command/Object/RemoveAcknowledgementCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18440,11 +17995,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Command/Object/ScheduleHostCheckCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18485,16 +18035,6 @@ parameters: count: 3 path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18530,11 +18070,6 @@ parameters: count: 1 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/ScheduleServiceCheckCommandForm.php - - message: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18590,11 +18125,6 @@ parameters: count: 1 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/ScheduleServiceDowntimeCommandForm.php - - message: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18635,11 +18165,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.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: "#^Argument of an invalid type array\\|ArrayAccess\\|Traversable supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -18875,11 +18400,6 @@ parameters: count: 1 path: modules/monitoring/application/forms/Config/TransportReorderForm.php - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" - count: 1 - path: modules/monitoring/application/forms/Config/TransportReorderForm.php - - message: "#^Method Icinga\\\\Module\\\\Monitoring\\\\Forms\\\\EventOverviewForm\\:\\:commentFilter\\(\\) has no return type specified\\.$#" count: 1 @@ -19175,16 +18695,6 @@ parameters: count: 2 path: modules/monitoring/application/views/helpers/PluginOutput.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 \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#" count: 1 @@ -19280,11 +18790,6 @@ parameters: 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/CommentQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\CommentQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19320,11 +18825,6 @@ parameters: 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/CommentdeletionhistoryQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\CommentdeletionhistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19370,11 +18870,6 @@ parameters: 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/CommenthistoryQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\CommenthistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19525,11 +19020,6 @@ parameters: 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/DowntimeQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\DowntimeQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19565,11 +19055,6 @@ parameters: 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/DowntimeendhistoryQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\DowntimeendhistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19615,11 +19100,6 @@ parameters: 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/DowntimestarthistoryQuery.php - - message: "#^Parameter \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\DowntimestarthistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -19725,11 +19205,6 @@ parameters: 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/FlappingendhistoryQuery.php - - message: "#^Method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\FlappingeventQuery\\:\\:joinBaseTables\\(\\) has no return type specified\\.$#" count: 1 @@ -19765,11 +19240,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.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 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\FlappingstarthistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -20765,11 +20235,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.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 \\#2 \\$cond of method Zend_Db_Select\\:\\:joinInner\\(\\) expects string, mixed given\\.$#" count: 1 @@ -21785,11 +21250,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.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 \\#2 \\$dir \\(int\\) of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\StatehistoryQuery\\:\\:order\\(\\) should be compatible with parameter \\$direction \\(string\\) of method Icinga\\\\Data\\\\Sortable\\:\\:order\\(\\)$#" count: 2 @@ -21910,11 +21370,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php - - - message: "#^Parameter \\#1 \\$array of function array_pop expects array, array\\\\|false given\\.$#" - count: 2 - path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php - - message: "#^Parameter \\#1 \\$key of function array_key_exists expects int\\|string, string\\|null given\\.$#" count: 1 @@ -22290,11 +21745,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.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 \\$endpoint of method Icinga\\\\Module\\\\Monitoring\\\\Command\\\\Transport\\\\ApiCommandTransport\\:\\:getUriFor\\(\\) expects string, null given\\.$#" count: 1 @@ -22305,11 +21755,6 @@ parameters: 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/Command/Transport/CommandTransport.php - - message: "#^Method Icinga\\\\Module\\\\Monitoring\\\\Command\\\\Transport\\\\CommandTransportInterface\\:\\:send\\(\\) has no return type specified\\.$#" count: 1 @@ -22425,11 +21870,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Controller.php - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" - count: 1 - path: modules/monitoring/library/Monitoring/Controller.php - - message: "#^Method Icinga\\\\Module\\\\Monitoring\\\\Data\\\\ColumnFilterIterator\\:\\:__construct\\(\\) has parameter \\$columns with no value type specified in iterable type array\\.$#" count: 1 @@ -23420,11 +22860,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" - count: 1 - path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php - - message: "#^Property Icinga\\\\Module\\\\Monitoring\\\\Object\\\\MonitoredObject\\:\\:\\$comments type has no value type specified in iterable type array\\.$#" count: 1 @@ -24270,11 +23705,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php - - - message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#" - count: 1 - path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php - - message: "#^Method Icinga\\\\Module\\\\Monitoring\\\\Web\\\\Widget\\\\CustomVarTable\\:\\:__construct\\(\\) has parameter \\$data with no value type specified in iterable type iterable\\.$#" count: 1 @@ -24300,11 +23730,6 @@ parameters: count: 1 path: modules/monitoring/library/Monitoring/Web/Widget/CustomVarTable.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 \\#2 \\$array of method Icinga\\\\Module\\\\Monitoring\\\\Web\\\\Widget\\\\CustomVarTable\\:\\:renderArray\\(\\) expects array, mixed given\\.$#" count: 1 @@ -24455,31 +23880,16 @@ parameters: count: 1 path: modules/setup/application/clicommands/ConfigCommand.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 \\$flag of method Icinga\\\\Module\\\\Setup\\\\Webserver\\:\\:setEnableFpm\\(\\) expects bool, 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 \\#1 \\$type of static method Icinga\\\\Module\\\\Setup\\\\Webserver\\:\\:createInstance\\(\\) expects string, mixed given\\.$#" count: 1 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 \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 1 @@ -24495,11 +23905,6 @@ parameters: count: 1 path: modules/setup/application/clicommands/TokenCommand.php - - - message: "#^Parameter \\#1 \\$string of function md5 expects string, int\\<0, max\\> given\\.$#" - count: 1 - path: modules/setup/application/clicommands/TokenCommand.php - - message: "#^Method Icinga\\\\Module\\\\Setup\\\\Controllers\\\\IndexController\\:\\:indexAction\\(\\) has no return type specified\\.$#" count: 1 @@ -25055,16 +24460,6 @@ parameters: count: 3 path: modules/setup/library/Setup/Requirement/ConfigDirectoryRequirement.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: "#^Cannot use array destructuring on mixed\\.$#" count: 1 @@ -25640,11 +25035,6 @@ parameters: count: 1 path: modules/setup/library/Setup/Utils/DbTool.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 \\#2 \\$array of function array_map expects array, array\\|null given\\.$#" count: 1 @@ -25715,11 +25105,6 @@ parameters: count: 1 path: modules/setup/library/Setup/Utils/EnableModuleStep.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: "#^Cannot call method addElement\\(\\) on Zend_Form_DisplayGroup\\|null\\.$#" count: 2 @@ -25870,11 +25255,6 @@ parameters: count: 1 path: modules/test/application/clicommands/PhpCommand.php - - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" - count: 1 - path: modules/test/application/clicommands/PhpCommand.php - - message: "#^Parameter \\#1 \\$path of function realpath expects string, mixed given\\.$#" count: 1 @@ -26085,16 +25465,6 @@ parameters: count: 1 path: modules/translation/library/Translation/Cli/ArrayToTextTableHelper.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 \\#3 \\$flags of function ob_start expects int, true given\\.$#" count: 1 @@ -26210,11 +25580,6 @@ parameters: count: 1 path: modules/translation/library/Translation/Util/GettextTranslationHelper.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 \\#2 \\$subject of function preg_match expects string, string\\|false given\\.$#" count: 5 @@ -26225,11 +25590,6 @@ parameters: 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 - - message: "#^Property Icinga\\\\Module\\\\Translation\\\\Util\\\\GettextTranslationHelper\\:\\:\\$catalogPath \\(string\\) does not accept string\\|false\\.$#" count: 1 diff --git a/phpstan.neon b/phpstan.neon index 8126806a8..05a6c084b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,6 @@ includes: - - phpstan-baseline.neon + - phpstan-baseline-standard.neon + - phpstan-baseline-by-php-version.php parameters: level: max @@ -28,29 +29,6 @@ parameters: - '#. but return statement is missing#' - '#Cannot call method importNode\(\) on DOMDocument\|null.#' - # ldap_connect() returns `LDAP\Connection` in php >= 81 - - - message: '#Parameter .* of function .* expects .*, .* given#' - count: 7 - path: library/Icinga/Protocol/Ldap/LdapCapabilities.php - - - - message: '#Parameter .* of (function|callable) .* expects .*, .* given#' - count: 75 - path: library/Icinga/Protocol/Ldap/LdapConnection.php - - - - message: '#Method Icinga\\Protocol\\Ldap\\LdapConnection::(prepareNewConnection|ldapSearch)\(\) should return (resource|bool\|resource) but returns (LDAP\\Connection\|false|array\|LDAP\\Result\|false)#' - count: 3 - path: library/Icinga/Protocol/Ldap/LdapConnection.php - - - - message: "#Cannot access offset ('count'|'dn') on array.*#" - count: 2 - path: library/Icinga/Protocol/Ldap/LdapConnection.php - - - '#Call to an undefined method ipl\\Sql\\Connection::exec\(\)#' - scanDirectories: - /usr/share/icinga-php - /usr/share/icingaweb2-modules