src/Crawler/UserEventCrawler.php
public function getUserYears(string $username): array
    {
        $node = $this->crawlUrl($username);

        if (null === $node) {
            return [];
        }

        $years = $node->filter('.content-top .secondary-nav-item-link')
            ->each(static function (Crawler $node) {
                return (int) trim($node->text());
            })
        ;

        sort($years);
        array_shift($years);

        return $years;
    }
public function getUserYears(string $username): array
    {
        $node = $this->crawlUrl($username);

        if (null === $node) {
            return [];
        }

        $years = $node->filter('.content-top .secondary-nav-item-link')
            ->each(static function (Crawler $node) {
                return (int) trim($node->text());
            })
        ;

        sort($years);
        array_shift($years);

        return $years;
    }
{@inheritdoc}