mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove unused phpstan tests (#14503)
This commit is contained in:
@@ -9,11 +9,11 @@ $adapter = new NeonAdapter();
|
||||
$config = [];
|
||||
|
||||
if (PHP_VERSION_ID < 80000) {
|
||||
$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php7.neon'));
|
||||
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php7.neon'));
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80100) {
|
||||
$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php80.neon'));
|
||||
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php80.neon'));
|
||||
}
|
||||
|
||||
// If we loaded any extra config
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
|
||||
- "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource given\\.$#"
|
||||
|
||||
- "#^Parameter \\#1 \\$link_identifier of function ldap_.* expects (array\\|)?resource, LDAP\\\\Connection given\\.$#"
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Authentication/TwoFactor.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$number of function base_convert expects string, int given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Authentication/TwoFactor.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$ch of function curl_setopt expects resource, CurlHandle given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Util/Proxy.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\$curl of method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) has invalid type CurlHandle\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Util/Proxy.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Clickatell.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Googlechat.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Playsms.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Pushbullet.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Signalwire.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Smseagle.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Smsfeedback.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$curl of static method LibreNMS\\\\Util\\\\Proxy\\:\\:applyToCurl\\(\\) expects CurlHandle, resource\\|false given\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Alert/Transport/Twilio.php
|
||||
@@ -1,11 +0,0 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
|
||||
- "#^Method LibreNMS\\\\Authentication\\\\LdapAuthorizer\\:\\:getLdapConnection\\(\\) has invalid return type LDAP\\\\Connection\\.$#"
|
||||
|
||||
- "#^Parameter \\#1 \\$ldap of function ldap_.* expects (array\\|)?resource, LDAP\\\\Connection given\\.$#"
|
||||
|
||||
-
|
||||
message: "#^Call to an undefined static method Illuminate\\\\Support\\\\Facades\\\\Redis\\:\\:ping()\\.$#"
|
||||
count: 1
|
||||
path: ../../LibreNMS/Validations/Poller/CheckRedis.php
|
||||
Reference in New Issue
Block a user