src/Crawler/UserEventCrawler.php
public function getEvents(string $username, ?int $year, int $page = 1): array
    {
        $node = $this->crawlUrl($username, $year, $page);

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

        return $node->filter('.events-list-item')->each(function (Crawler $node): Event {
            return $this->parseEvent($node);
        });
    }
public function getEvents(string $username, ?int $year, int $page = 1): array
    {
        $node = $this->crawlUrl($username, $year, $page);

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

        return $node->filter('.events-list-item')->each(function (Crawler $node): Event {
            return $this->parseEvent($node);
        });
    }
{@inheritdoc}