DEV Community


How to stop printing resolve function in guzzle promise

aviboy2006 profile image Avinash Dalvi ・1 min read

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();


Editor guide