From ab46055e71f31ff1689193cd3ba969b09374c3ba Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Thu, 5 Dec 2024 16:08:45 +0800 Subject: [PATCH] Use PHPStan 2.0 --- composer.json | 6 +++--- includes/class-ckwc-integration.php | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a9ed879..e0fb63a 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,9 @@ "codeception/util-universalframework": "^1.0", "php-webdriver/webdriver": "^1.0", "wp-coding-standards/wpcs": "^3.0.0", - "phpstan/phpstan": "^1.7", - "szepeviktor/phpstan-wordpress": "^1.0", - "wp-cli/wp-cli-bundle": "2.9.0" + "phpstan/phpstan": "^1.0 || ^2.0", + "szepeviktor/phpstan-wordpress": "^1.0 || ^2.0", + "wp-cli/wp-cli-bundle": "2.11" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/includes/class-ckwc-integration.php b/includes/class-ckwc-integration.php index f1628af..1b605fc 100644 --- a/includes/class-ckwc-integration.php +++ b/includes/class-ckwc-integration.php @@ -276,9 +276,6 @@ private function maybe_import_configuration() { global $wp_filesystem; // Bail if no configuration file was supplied. - if ( ! is_array( $_FILES ) ) { - return; - } if ( ! array_key_exists( 'woocommerce_ckwc_import', $_FILES ) ) { return; }