From 0bf63f2c55451604da4c0b77b44624b851daa8bd Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Sat, 23 May 2026 01:24:03 +0300 Subject: [PATCH 1/2] Remove leftover The `run()` method no longer exists Signed-off-by: Kaspars Dambis --- inc/packages/admin/namespace.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/inc/packages/admin/namespace.php b/inc/packages/admin/namespace.php index 287bbc06..91c0659e 100644 --- a/inc/packages/admin/namespace.php +++ b/inc/packages/admin/namespace.php @@ -124,8 +124,6 @@ function handle_did_during_ajax( $result, $action, $args ) { return $result; } - ( new Updater\Updater( $did ) )->run(); - Packages\add_package_to_release_cache( $did ); add_filter( 'http_request_args', 'FAIR\\Packages\\maybe_add_accept_header', 20, 2 ); From 234bb596e75b86d2cc6eed90c48ee41ce3c49a6f Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Wed, 27 May 2026 20:07:05 +0300 Subject: [PATCH 2/2] This is now fixed No need to add the filters here Signed-off-by: Kaspars Dambis --- tests/phpstan-baseline.neon | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/phpstan-baseline.neon b/tests/phpstan-baseline.neon index 7bacc7c8..8b3b3801 100644 --- a/tests/phpstan-baseline.neon +++ b/tests/phpstan-baseline.neon @@ -18,12 +18,6 @@ parameters: count: 1 path: ../inc/packages/admin/namespace.php - - - message: '#^Class FAIR\\Updater\\Updater does not have a constructor and must be instantiated without any parameters\.$#' - identifier: new.noConstructor - count: 1 - path: ../inc/packages/admin/namespace.php - - message: '#^Unsafe usage of new static\(\)\.$#' identifier: new.static