From 045dcc74996225e3986aae7abd88313ca886fb09 Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Mon, 24 Oct 2022 18:56:35 +0200 Subject: [PATCH] Remove unused phpstan tests (#14503) --- tests/phpstan/ignore-by-php-version.neon.php | 4 +- tests/phpstan/phpstan-php7.neon | 66 -------------------- tests/phpstan/phpstan-php80.neon | 11 ---- 3 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 tests/phpstan/phpstan-php7.neon delete mode 100644 tests/phpstan/phpstan-php80.neon diff --git a/tests/phpstan/ignore-by-php-version.neon.php b/tests/phpstan/ignore-by-php-version.neon.php index 292c805f7d..040dd8538c 100644 --- a/tests/phpstan/ignore-by-php-version.neon.php +++ b/tests/phpstan/ignore-by-php-version.neon.php @@ -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 diff --git a/tests/phpstan/phpstan-php7.neon b/tests/phpstan/phpstan-php7.neon deleted file mode 100644 index 88bde77384..0000000000 --- a/tests/phpstan/phpstan-php7.neon +++ /dev/null @@ -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 diff --git a/tests/phpstan/phpstan-php80.neon b/tests/phpstan/phpstan-php80.neon deleted file mode 100644 index 68098e6216..0000000000 --- a/tests/phpstan/phpstan-php80.neon +++ /dev/null @@ -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