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

        if (!isset($response['similarartists']['artist'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Artist::fromApi($data);
            },
            $response['similarartists']['artist']
        );
    }
public function getSimilar(SimilarArtistBuilder $builder): array
    {
        $response = $this->client->unsignedCall('artist.getSimilar', $builder->getQuery());

        if (!isset($response['similarartists']['artist'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Artist::fromApi($data);
            },
            $response['similarartists']['artist']
        );
    }
{@inheritdoc}