Fix uninstall dependency.

This commit is contained in:
Pedro Silva 2023-12-20 15:33:40 +00:00
parent 429232f60f
commit 2d21035457
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -8,7 +8,7 @@
declare(strict_types=1);
use WooCommerce\PayPalCommerce\Uninstall\ClearDatabaseInterface;
use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings;
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
@ -35,7 +35,7 @@ require $main_plugin_file;
$bootstrap = require "{$root_dir}/bootstrap.php";
$app_container = $bootstrap( $root_dir );
assert( $app_container instanceof CachingContainer );
assert( $app_container instanceof ContainerInterface );
$settings = $app_container->get( 'wcgateway.settings' );
assert( $settings instanceof Settings );