src/Service/ArtistService.php
public function getTopAlbums(ArtistTopAlbumsBuilder $builder): array
    {
        $response =  $this->client->unsignedCall('artist.getTopAlbums', $builder->getQuery());

        if (!isset($response['topalbums']['album'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Album::fromApi($data);
            },
            $response['topalbums']['album']
        );
    }
public function getTopAlbums(ArtistTopAlbumsBuilder $builder): array
    {
        $response =  $this->client->unsignedCall('artist.getTopAlbums', $builder->getQuery());

        if (!isset($response['topalbums']['album'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Album::fromApi($data);
            },
            $response['topalbums']['album']
        );
    }
{@inheritdoc}