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

        if (!isset($response['toptracks']['track'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Song::fromApi($data);
            },
            $response['toptracks']['track']
        );
    }
public function getTopTracks(ArtistTopTracksBuilder $builder): array
    {
        $response = $this->client->unsignedCall('artist.getTopTracks', $builder->getQuery());

        if (!isset($response['toptracks']['track'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Song::fromApi($data);
            },
            $response['toptracks']['track']
        );
    }
{@inheritdoc}