Remove unused phpstan tests (#14503)

This commit is contained in:
Jellyfrog
2022-10-24 18:56:35 +02:00
committed by GitHub
parent db4dce298a
commit 045dcc7499
3 changed files with 2 additions and 79 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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