private static function unwrap(array $result): array
    {
        array_walk_recursive($result, function (&$value) {
            if ($value instanceof Image) {
                $value = $value->image;
            }
        });

        return $result;
    }
private static function unwrap(array $result): array
    {
        array_walk_recursive($result, function (&$value) {
            if ($value instanceof Image) {
                $value = $value->image;
            }
        });

        return $result;
    }
private static function unwrap ( array $ result ) : array { array_walk_recursive ( $ result , function ( & $ value ) { if ( $ value instanceof Image ) { $ value = $ value -> image ; } } ) ; return $ result ; }
Unwrap an array of stuff ready to pass down to the vips_ layer. We
swap instances of the Image for the plain resource.

@param array $result Unwrap this.

@return array $result unwrapped, ready for vips.

@internal
Unwrap an array of stuff ready to pass down to the vips_ layer . We swap instances of the Image for the plain resource .