DEV Community

Avinash Dalvi
Avinash Dalvi

Posted on

How to stop printing resolve function in guzzle promise

I am using local function to create promise. Trying to call external method in promise onFulfilled and returning response of method. When I am trying to resolve promise by passing parameter its printing response. Is it way to avoid this.

Promise function :

protected function promiseFunction($image){
        $promise = new Promise();

Top comments (0)