mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
phpstan: Ignore LdapCapabilities/LdapConnection
errors
- ldap_connect() returns `LDAP\Connection` in php >= 81
This commit is contained in:
parent
fe24d7809f
commit
2818757bc6
21
phpstan.neon
21
phpstan.neon
@ -27,6 +27,27 @@ parameters:
|
||||
- '#Unsafe usage of new static\(\)#'
|
||||
- '#. but return statement is missing#'
|
||||
|
||||
# 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
|
||||
|
||||
scanDirectories:
|
||||
- vendor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user