diff --git a/src/BookProvider.php b/src/BookProvider.php index e82c660..7b6dca1 100644 --- a/src/BookProvider.php +++ b/src/BookProvider.php @@ -222,6 +222,7 @@ protected function getPicturesData( array $pictures ) { } elseif ( str_starts_with( $url, '/' ) ) { $url = 'https://' . $this->api->getDomainName() . $url; } + $picture->url = $url; yield function () use ( $client, $url ) { // We could use the 'sink' option here, but for https://github.com/Kevinrob/guzzle-cache-middleware/issues/82 // @phan-suppress-next-line PhanUndeclaredMethod Magic method not declared in the interface