phpstan: Streamline vendor file location with local dev-env (#5175)
This commit is contained in:
commit
58b3321852
|
@ -33,12 +33,12 @@ jobs:
|
|||
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
composer require -n --no-progress overtrue/phplint
|
||||
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git vendor/icinga-php-library
|
||||
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git vendor/icinga-php-thirdparty
|
||||
git clone --depth 1 https://github.com/Icinga/icingaweb2-module-x509.git vendor/modules/x509-web
|
||||
git clone --depth 1 https://github.com/Icinga/icingadb-web.git vendor/modules/icingadb-web
|
||||
git clone --depth 1 https://github.com/Icinga/icingaweb2-module-pdfexport.git vendor/modules/pdfexport-web
|
||||
composer require -n --no-progress overtrue/phplint phpstan/phpstan
|
||||
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git /usr/share/icinga-php/ipl
|
||||
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git /usr/share/icinga-php/vendor
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-x509.git /usr/share/icingaweb2-modules/x509
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingadb-web.git /usr/share/icingaweb2-modules/icingadb
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-pdfexport.git /usr/share/icingaweb2-modules/pdfexport
|
||||
|
||||
- name: PHP Lint
|
||||
if: ${{ ! cancelled() }}
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
|
||||
- name: PHPStan
|
||||
if: ${{ ! cancelled() }}
|
||||
uses: php-actions/phpstan@v3
|
||||
run: ./vendor/bin/phpstan analyse
|
||||
|
||||
test:
|
||||
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
|
||||
|
|
|
@ -10,6 +10,7 @@ class CommentParser
|
|||
protected $raw;
|
||||
protected $plain;
|
||||
protected $title;
|
||||
/** @var array $paragraphs */
|
||||
protected $paragraphs = array();
|
||||
|
||||
public function __construct($raw)
|
||||
|
@ -37,6 +38,7 @@ class CommentParser
|
|||
$p = null;
|
||||
foreach (preg_split('~\n~', $plain) as $line) {
|
||||
// Strip * at line start
|
||||
/** @var string $line */
|
||||
$line = preg_replace('~^\s*\*\s?~', '', $line);
|
||||
$line = rtrim($line);
|
||||
if ($this->title === null) {
|
||||
|
|
|
@ -89,8 +89,6 @@ class LdapConnection implements Selectable, Inspectable
|
|||
|
||||
/**
|
||||
* The LDAP link identifier being used
|
||||
*
|
||||
* @var resource
|
||||
*/
|
||||
protected $ds;
|
||||
|
||||
|
@ -248,7 +246,7 @@ class LdapConnection implements Selectable, Inspectable
|
|||
*
|
||||
* Establishes a connection if necessary.
|
||||
*
|
||||
* @return resource
|
||||
* @throws LdapException
|
||||
*/
|
||||
public function getConnection()
|
||||
{
|
||||
|
@ -617,9 +615,11 @@ class LdapConnection implements Selectable, Inspectable
|
|||
/**
|
||||
* Return whether an entry identified by the given distinguished name exists
|
||||
*
|
||||
* @param string $dn
|
||||
* @param string $dn
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @throws LdapException
|
||||
*/
|
||||
public function hasDn($dn)
|
||||
{
|
||||
|
@ -627,6 +627,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||
$this->bind();
|
||||
|
||||
$result = ldap_read($ds, $dn, '(objectClass=*)', array('objectClass'));
|
||||
if ($result === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ldap_count_entries($ds, $result) > 0;
|
||||
}
|
||||
|
||||
|
@ -654,6 +658,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||
}
|
||||
|
||||
$children = ldap_get_entries($ds, $result);
|
||||
if ($children === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $children['count']; $i++) {
|
||||
$result = $this->deleteRecursively($children[$i]['dn']);
|
||||
if (! $result) {
|
||||
|
@ -785,6 +793,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||
$count = 0;
|
||||
$entries = array();
|
||||
$entry = ldap_first_entry($ds, $results);
|
||||
if ($entry === false) {
|
||||
return [];
|
||||
}
|
||||
|
||||
do {
|
||||
if ($unfoldAttribute) {
|
||||
$rows = $this->cleanupAttributes(ldap_get_attributes($ds, $entry), $fields, $unfoldAttribute);
|
||||
|
@ -952,6 +964,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||
}
|
||||
|
||||
$entry = ldap_first_entry($ds, $results);
|
||||
if ($entry === false) {
|
||||
return [];
|
||||
}
|
||||
|
||||
do {
|
||||
if ($unfoldAttribute) {
|
||||
$rows = $this->cleanupAttributes(ldap_get_attributes($ds, $entry), $fields, $unfoldAttribute);
|
||||
|
@ -1184,9 +1200,7 @@ class LdapConnection implements Selectable, Inspectable
|
|||
/**
|
||||
* Prepare and establish a connection with the LDAP server
|
||||
*
|
||||
* @param Inspection $info Optional inspection to fill with diagnostic info
|
||||
*
|
||||
* @return resource A LDAP link identifier
|
||||
* @param ?Inspection $info Optional inspection to fill with diagnostic info
|
||||
*
|
||||
* @throws LdapException In case the connection is not possible
|
||||
*/
|
||||
|
@ -1199,6 +1213,9 @@ class LdapConnection implements Selectable, Inspectable
|
|||
$hostname = $this->normalizeHostname($this->hostname);
|
||||
|
||||
$ds = ldap_connect($hostname);
|
||||
if ($ds === false) {
|
||||
throw new LdapException('Failed to connect to LDAP');
|
||||
}
|
||||
|
||||
// Set a proper timeout for each connection
|
||||
ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, $this->timeout);
|
||||
|
@ -1228,7 +1245,7 @@ class LdapConnection implements Selectable, Inspectable
|
|||
}
|
||||
|
||||
/**
|
||||
* Perform a LDAP search and return the result
|
||||
* Perform a LDAP search and return the result or false on error
|
||||
*
|
||||
* @param LdapQuery $query
|
||||
* @param array $attributes An array of the required attributes
|
||||
|
@ -1238,8 +1255,6 @@ class LdapConnection implements Selectable, Inspectable
|
|||
* @param int $deref
|
||||
* @param array $controls LDAP Controls to send with the request (Only supported with PHP v7.3+)
|
||||
*
|
||||
* @return resource|bool A search result identifier or false on error
|
||||
*
|
||||
* @throws LogicException If the LDAP query search scope is unsupported
|
||||
*/
|
||||
public function ldapSearch(
|
||||
|
@ -1553,6 +1568,13 @@ class LdapConnection implements Selectable, Inspectable
|
|||
return $insp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize all given hostnames to a valid LDAP URL
|
||||
*
|
||||
* @param string $hostname
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function normalizeHostname($hostname)
|
||||
{
|
||||
$scheme = $this->encryption === static::LDAPS ? 'ldaps://' : 'ldap://';
|
||||
|
|
|
@ -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\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/ErrorController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function rawurldecode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/NavigationController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function ucwords expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/NavigationController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function sha1 expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/Resource/SshResourceForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/User/CreateMembershipForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserBackendReorderForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/AddMemberForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/AddMemberForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$pieces of function implode expects array, mixed given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Navigation/NavigationConfigForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, TKey of int\\|string given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Security/RoleForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Application/ApplicationBootstrap.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ApplicationBootstrap.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, array\\{\\$this\\(Icinga\\\\Application\\\\ClassLoader\\), 'loadClass'\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Hook/HealthHook.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Hook/TicketHook.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function ltrim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Libraries/Library.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Application/Logger.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtoupper expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Logger.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$dir_handle of function closedir expects resource, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$dir_handle of function readdir expects resource, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function rtrim expects string, array\\|string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Application\\\\Modules\\\\NavigationItemContainer\\), string\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/NavigationItemContainer.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Platform.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_flip expects array\\<int\\|string\\>, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Test.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Authentication/User/UserBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$number of function round expects float, int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/Donut.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strip_tags expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/Graph/Tooltip.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, Icinga\\\\Chart\\\\Graph\\\\Tooltip given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/GridChart.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$namespace of method DOMImplementation\\:\\:createDocument\\(\\) expects string, null given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/SVGRenderer.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_values expects array, array\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Loader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Loader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$multiplier of function str_repeat expects int, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Screen.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Db/DbConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Db/DbConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Filter/Filter.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, bool\\|float\\|int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Filter/FilterExpression.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/ResourceFactory.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, 'parent\\:\\:__construct' given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Exception/Http/HttpException.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Exception/IcingaException.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Ini/IniWriter.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_splice expects array, array\\<int\\|string, mixed\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int\\|string, mixed\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$dirname of function rmdir expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/TemporaryLocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$obj of function get_object_vars expects object, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#4 \\$attrs of callable 'ldap_list'\\|'ldap_read'\\|'ldap_search' expects array, array\\|null given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapUtils.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Protocol/Ldap/Root.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$timestamp of function date expects int, float\\|int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Repository/Repository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array_arg of function natcasesort expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/DirectoryIterator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Util/Environment.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$array of function array_map expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$start of function substr expects int, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Web\\\\Controller\\\\ActionController\\), non\\-falsy\\-string\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function base64_encode expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function rawurlencode expects string, null given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\<int, mixed\\>, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/StaticController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$mode of function mkdir expects int, float\\|int given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Web/FileCache.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form/Element/DateTimePicker.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form/Validator/DateTimeValidator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function ltrim expects string, bool\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/JavaScript.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/JavaScript.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$replace of function preg_replace expects array\\|string, int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Navigation/Navigation.php
|
||||
|
||||
-
|
||||
message: "#^Method Icinga\\\\Web\\\\RememberMe\\:\\:getAllByUsername\\(\\) should return array but returns array\\|false\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/RememberMe.php
|
||||
|
||||
-
|
||||
message: "#^Method Icinga\\\\Web\\\\RememberMe\\:\\:getAllUser\\(\\) should return array but returns array\\|false\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/RememberMe.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, false given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Web/Session/PhpSession.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, null given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Session/PhpSession.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Session/PhpSession.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, true given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Web/Session/PhpSession.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#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\\<array\\<string\\>\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/controllers/EventController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/controllers/ListController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$time of function strtotime expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/controllers/TimelineController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/CheckNowCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ProcessCheckResultCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 3
|
||||
path: modules/monitoring/application/forms/Command/Object/RemoveAcknowledgementCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostCheckCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Config/TransportReorderForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/views/helpers/PluginOutput.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function urlencode expects string, array\\|string given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/views/helpers/PluginOutput.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$columns of method Icinga\\\\Module\\\\Monitoring\\\\Backend\\\\Ido\\\\Query\\\\IdoQuery\\:\\:createSubQuery\\(\\) expects array, array\\<mixed, mixed\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset string on array\\{command\\: string, pid\\: int, running\\: bool, signaled\\: bool, stopped\\: bool, exitcode\\: int, termsig\\: int, stopsig\\: int\\}\\|false\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Controller.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<string, int\\|string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array_arg of function key expects array\\|object, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Web/Widget/CustomVarTable.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$file of function file_put_contents expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#"
|
||||
count: 7
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$mode of function chmod expects int, float\\|int given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$data of function bin2hex expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/TokenCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function md5 expects string, int\\<0, max\\> given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/TokenCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Requirement/OSRequirement.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function ucfirst expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Requirement/OSRequirement.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Utils/DbTool.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Web/Form/Validator/TokenValidator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, int given\\.$#"
|
||||
count: 1
|
||||
path: modules/translation/library/Translation/Cli/ArrayToTextTableHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/translation/library/Translation/Util/GettextTranslationHelper.php
|
|
@ -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
|
|
@ -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
|
|
@ -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\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/ErrorController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/NavigationController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function ucwords expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/controllers/NavigationController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function sha1 expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/Resource/SshResourceForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/User/CreateMembershipForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserBackendReorderForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/AddMemberForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/AddMemberForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: application/forms/Config/UserGroup/DbUserGroupBackendForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Config/UserGroup/LdapUserGroupBackendForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Navigation/NavigationConfigForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, TKey of int\\|string given\\.$#"
|
||||
count: 2
|
||||
path: application/forms/Security/RoleForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ApplicationBootstrap.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(Icinga\\\\Application\\\\ClassLoader\\), 'loadClass'\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Application/ClassLoader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Hook/HealthHook.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Hook/TicketHook.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Libraries/Library.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Application/Logger.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Logger.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$dir_handle of function closedir expects resource\\|null, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$dir_handle of function readdir expects resource\\|null, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function rtrim expects string, array\\|string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/Module.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Application\\\\Modules\\\\NavigationItemContainer\\), string\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Modules/NavigationItemContainer.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Platform.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_flip expects array\\<int\\|string\\>, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Application/Test.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Authentication/User/UserBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Authentication/UserGroup/UserGroupBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$num of function round expects float\\|int, int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/Donut.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strip_tags expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/Graph/Tooltip.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, Icinga\\\\Chart\\\\Graph\\\\Tooltip given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Chart/GridChart.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_values expects array, array\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Loader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Loader.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$times of function str_repeat expects int, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Cli/Screen.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Db/DbConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Db/DbConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Filter/Filter.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, bool\\|float\\|int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/Filter/FilterExpression.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Data/ResourceFactory.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, 'parent\\:\\:__construct' given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Exception/Http/HttpException.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Exception/IcingaException.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Ini/IniWriter.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_splice expects array, array\\<int\\|string, mixed\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<int\\|string, mixed\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/LocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$directory of function rmdir expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/File/Storage/TemporaryLocalFileStorage.php
|
||||
|
||||
-
|
||||
message: "#^Function ldap_control_paged_result not found\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Function ldap_control_paged_result_response not found\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$object of function get_object_vars expects object, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#4 \\$attributes of callable 'ldap_list'\\|'ldap_read'\\|'ldap_search' expects array, array\\|null given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Protocol/Ldap/LdapConnection.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Protocol/Ldap/LdapUtils.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Protocol/Ldap/Root.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$timestamp of function date expects int\\|null, float\\|int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Repository/Repository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function natcasesort expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/DirectoryIterator.php
|
||||
|
||||
-
|
||||
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, string given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$offset of function substr expects int, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, float given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Util/StringHelper.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Icinga\\\\Web\\\\Controller\\\\ActionController\\), non\\-falsy\\-string\\} given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, null given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$args of function call_user_func_array expects array\\<int\\|string, mixed\\>, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/ActionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Controller/StaticController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$permissions of function mkdir expects int, float\\|int given\\.$#"
|
||||
count: 2
|
||||
path: library/Icinga/Web/FileCache.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form/Element/DateTimePicker.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Form/Validator/DateTimeValidator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function ltrim expects string, bool\\|string given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/JavaScript.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/JavaScript.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$replacement of function preg_replace expects array\\|string, int given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Navigation/Navigation.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$timestamp of function date expects int\\|null, int\\|false given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Widget/Chart/HistoryColorGrid.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: library/Icinga/Web/Widget/SortBox.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function substr_replace expects array\\|string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/doc/library/Doc/Renderer/DocSectionRenderer.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/migrate/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$from of function rename expects string, int\\|string given\\.$#"
|
||||
count: 1
|
||||
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: modules/migrate/library/Migrate/Config/UserDomainMigration.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function ucfirst expects string, string\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/clicommands/ListCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<array\\<string\\>\\>\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/controllers/EventController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/controllers/ListController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$datetime of function strtotime expects string, mixed given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/controllers/TimelineController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/CheckNowCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ProcessCheckResultCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 3
|
||||
path: modules/monitoring/application/forms/Command/Object/RemoveAcknowledgementCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostCheckCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleHostDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|ArrayAccess\\|Traversable given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/forms/Config/TransportReorderForm.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/views/helpers/PluginOutput.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function urlencode expects string, array\\|string given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/application/views/helpers/PluginOutput.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentdeletionhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingendhistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/FlappingstarthistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_keys expects array, \\(float\\|int\\) given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#"
|
||||
count: 2
|
||||
path: modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_pop expects array, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Controller.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Object/MonitoredObject.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<string, int\\|string\\>\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Web/Rest/RestRequest.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function key expects array\\|object, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/monitoring/library/Monitoring/Web/Widget/CustomVarTable.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$filename of function file_put_contents expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#"
|
||||
count: 7
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$permissions of function chmod expects int, float\\|int given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/ConfigCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function md5 expects string, int\\<0, max\\> given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/application/clicommands/TokenCommand.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Requirement/OSRequirement.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Requirement/OSRequirement.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Utils/DbTool.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
||||
count: 1
|
||||
path: modules/setup/library/Setup/Web/Form/Validator/TokenValidator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$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
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
$includes = [];
|
||||
if (PHP_VERSION_ID < 80000) {
|
||||
$includes[] = __DIR__ . '/phpstan-baseline-7x.neon';
|
||||
} elseif (PHP_VERSION_ID < 80100) {
|
||||
$includes[] = __DIR__ . '/phpstan-baseline-8.0.neon';
|
||||
} else {
|
||||
$includes[] = __DIR__ . '/phpstan-baseline-8.1+.neon';
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID >= 80000) {
|
||||
$includes[] = __DIR__ . '/phpstan-baseline-8x.neon';
|
||||
}
|
||||
|
||||
return [
|
||||
'includes' => $includes
|
||||
];
|
File diff suppressed because it is too large
Load Diff
29
phpstan.neon
29
phpstan.neon
|
@ -1,5 +1,6 @@
|
|||
includes:
|
||||
- phpstan-baseline.neon
|
||||
- phpstan-baseline-standard.neon
|
||||
- phpstan-baseline-by-php-version.php
|
||||
|
||||
parameters:
|
||||
level: max
|
||||
|
@ -28,31 +29,9 @@ 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:
|
||||
- vendor
|
||||
- /usr/share/icinga-php
|
||||
- /usr/share/icingaweb2-modules
|
||||
|
||||
excludePaths:
|
||||
- library/Icinga/Test
|
||||
|
|
Loading…
Reference in New Issue