DEV Community

Avinash Dalvi
Avinash Dalvi

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay