src/Service/TagService.php
public function getSimilar(string $tag): array
    {
        $response = $this->client->unsignedCall('tag.getSimilar', [
            'tag' => $tag,
        ]);

        if (!isset($response['similartags']['tag'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Tag::fromApi($data);
            },
            $response['similartags']['tag']
        );
    }
public function getSimilar(string $tag): array
    {
        $response = $this->client->unsignedCall('tag.getSimilar', [
            'tag' => $tag,
        ]);

        if (!isset($response['similartags']['tag'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Tag::fromApi($data);
            },
            $response['similartags']['tag']
        );
    }
{@inheritdoc}