diff --git a/plugin/cli/class-wpcloud-cli-site.php b/plugin/cli/class-wpcloud-cli-site.php index 86c92cd..e9cd8a2 100644 --- a/plugin/cli/class-wpcloud-cli-site.php +++ b/plugin/cli/class-wpcloud-cli-site.php @@ -201,7 +201,7 @@ public function import( array $args, array $switches ): void { $sites = array_filter( $sites, function ( $site ) { - return ! WPCLOUD_Site::get_by_id( $site->atomic_site_id ); + return ! WPCLOUD_Site::get_by_id( (int) $site->atomic_site_id ); } ); @@ -216,7 +216,7 @@ function ( $site ) { WP_CLI::confirm( 'Are you sure you want to import?' ); $progress = \WP_CLI\Utils\make_progress_bar( 'Importing', $total ); foreach ( $sites as $site ) { - $this->import_site( $site->atomic_site_id, $owner ); + $this->import_site( (int) $site->atomic_site_id, $owner ); $progress->tick(); } $progress->finish();