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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more