Skip to content

phpstan fixes

phpstan fixes #3231

Triggered via pull request November 16, 2023 12:19
Status Failure
Total duration 2m 38s
Artifacts

php.yml

on: pull_request
Matrix: lint
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

40 errors
Static analysis for php 7.3 on ubuntu-latest: application/controllers/DashboardController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/DashboardController.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/DashboardController.php#L50
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/ErrorController.php#L1
Ignored error pattern #^Parameter \#1 \$array of function array_shift expects array, array\<int, string\>\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ErrorController.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/ErrorController.php#L58
Parameter #1 $stack of function array_shift expects array, array<int, string>|false given.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function ucwords expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/NavigationController.php#L231
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: application/controllers/NavigationController.php#L432
Parameter #1 $str of function ucwords expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L1
Ignored error pattern #^Parameter \#1 \$string of function sha1 expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/forms/Config/Resource/SshResourceForm.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L132
Parameter #1 $str of function sha1 expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/DashboardController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/DashboardController.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/DashboardController.php#L50
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/ErrorController.php#L1
Ignored error pattern #^Parameter \#1 \$array of function array_shift expects array, array\<int, string\>\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ErrorController.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/ErrorController.php#L58
Parameter #1 $stack of function array_shift expects array, array<int, string>|false given.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function ucwords expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/NavigationController.php#L231
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: application/controllers/NavigationController.php#L432
Parameter #1 $str of function ucwords expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L1
Ignored error pattern #^Parameter \#1 \$string of function sha1 expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/forms/Config/Resource/SshResourceForm.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L132
Parameter #1 $str of function sha1 expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/DashboardController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/DashboardController.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/DashboardController.php#L50
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/ErrorController.php#L1
Ignored error pattern #^Parameter \#1 \$array of function array_shift expects array, array\<int, string\>\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ErrorController.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/ErrorController.php#L58
Parameter #1 $stack of function array_shift expects array, array<int, string>|false given.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function rawurldecode expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Parameter \#1 \$string of function ucwords expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/NavigationController.php#L231
Parameter #1 $str of function rawurldecode expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: application/controllers/NavigationController.php#L432
Parameter #1 $str of function ucwords expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L1
Ignored error pattern #^Parameter \#1 \$string of function sha1 expects string, mixed given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/forms/Config/Resource/SshResourceForm.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: application/forms/Config/Resource/SshResourceForm.php#L132
Parameter #1 $str of function sha1 expects string, mixed given.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Application/ApplicationBootstrap.php#L572
Parameter #2 $value of function ini_set expects string, int given.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Application/ApplicationBootstrap.php#L573
Parameter #2 $value of function ini_set expects string, int given.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Protocol/Ldap/LdapCapabilities.php#L1
Ignored error pattern #Parameter .* of function .* expects .*, .* given# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Protocol/Ldap/LdapCapabilities.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Protocol/Ldap/LdapConnection.php#L1
Ignored error pattern #Method Icinga\\Protocol\\Ldap\\LdapConnection::(prepareNewConnection|ldapSearch)\(\) should return (resource|bool\|resource) but returns (LDAP\\Connection\|false|array\|LDAP\\Result\|false)# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Protocol/Ldap/LdapConnection.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Protocol/Ldap/LdapConnection.php#L415
Ignored error pattern #Parameter .* of (function|callable) .* expects .*, .* given# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Protocol/Ldap/LdapConnection.php is expected to occur 75 times, but occurred only 24 times.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Protocol/Ldap/LdapConnection.php#L657
Ignored error pattern #Cannot access offset ('count'|'dn') on array.*# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Protocol/Ldap/LdapConnection.php is expected to occur 2 times, but occurred only 1 time.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Protocol/Ldap/LdapConnection.php#L1227
Method Icinga\Protocol\Ldap\LdapConnection::prepareNewConnection() should return resource but returns resource|false.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Util/Environment.php#L25
Parameter #2 $value of function ini_set expects string, int given.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Util/Environment.php#L39
Parameter #2 $value of function ini_set expects string, int given.
Static analysis for php 8.0 on ubuntu-latest: library/Icinga/Web/Session/PhpSession.php#L116
Parameter #2 $value of function ini_set expects string, false given.