1010use Akeneo \Pim \ApiClient \Pagination \PageInterface ;
1111use Akeneo \Pim \ApiClient \Pagination \ResourceCursorFactoryInterface ;
1212use Akeneo \Pim \ApiClient \Pagination \ResourceCursorInterface ;
13- use Http \Promise \Promise ;
13+ use GuzzleHttp \Promise \PromiseInterface ;
1414use Psr \Http \Message \StreamInterface ;
1515
1616/**
@@ -76,7 +76,7 @@ public function upsert(string $code, array $data = []): int
7676 return $ this ->resourceClient ->upsertResource (static ::ASSET_CATEGORY_URI , [$ code ], $ data );
7777 }
7878
79- public function upsertAsync (string $ code , array $ data = [], callable $ onSuccess = null , callable $ onFail = null ): Promise
79+ public function upsertAsync (string $ code , array $ data = [], callable $ onSuccess = null , callable $ onFail = null ): PromiseInterface
8080 {
8181 return $ this ->resourceClient ->upsertAsyncResource (static ::ASSET_CATEGORY_URI , [$ code ], $ data , $ onSuccess , $ onFail );
8282 }
@@ -103,7 +103,7 @@ public function create(string $code, array $data = []): int
103103 return $ this ->resourceClient ->createResource (static ::ASSET_CATEGORIES_URI , [], $ data );
104104 }
105105
106- public function upsertAsyncList (StreamInterface |array $ resources , callable $ onSuccess = null , callable $ onFail = null ): Promise
106+ public function upsertAsyncList (StreamInterface |array $ resources , callable $ onSuccess = null , callable $ onFail = null ): PromiseInterface
107107 {
108108 return $ this ->resourceClient ->upsertAsyncStreamResourceList (static ::ASSET_CATEGORIES_URI , [], $ resources , $ onSuccess , $ onFail );
109109 }
0 commit comments