public static function unpackDeferredResults($result)
    {
        while ($result instanceof DeferredResult) {
            $result = $result->result;
        }

        if (is_array($result)) {
            foreach ($result as $key => $value) {
                $result[$key] = static::unpackDeferredResults($value);
            }
        }

        return $result;
    }
public static function unpackDeferredResults($result)
    {
        while ($result instanceof DeferredResult) {
            $result = $result->result;
        }

        if (is_array($result)) {
            foreach ($result as $key => $value) {
                $result[$key] = static::unpackDeferredResults($value);
            }
        }

        return $result;
    }
public static function unpackDeferredResults ( $ result ) { while ( $ result instanceof DeferredResult ) { $ result = $ result -> result ; } if ( is_array ( $ result ) ) { foreach ( $ result as $ key => $ value ) { $ result [ $ key ] = static :: unpackDeferredResults ( $ value ) ; } } return $ result ; }
Unpack results stored inside deferred resolvers.

@param mixed $result
The result ree.

@return mixed
The unpacked result.
Unpack results stored inside deferred resolvers .