src/Service/ArtistService.php
public function search(string $artist, int $limit = 50, int $page = 1): array
    {
        $response = $this->client->unsignedCall('artist.search', [
            'artist' => $artist,
            'limit'  => $limit,
            'page'   => $page,
        ]);

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

        return ApiHelper::mapList(
            static function ($data) {
                return Artist::fromApi($data);
            },
            $response['results']['artistmatches']['artist']
        );
    }
public function search(string $artist, int $limit = 50, int $page = 1): array
    {
        $response = $this->client->unsignedCall('artist.search', [
            'artist' => $artist,
            'limit'  => $limit,
            'page'   => $page,
        ]);

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

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