Skip to content

Commit

Permalink
fix for maximum crawl limit (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akilez committed Sep 22, 2022
1 parent f948b9e commit 6527aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SitemapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function getSitemap(): Sitemap
}

if (! is_null($this->maximumCrawlCount)) {
$this->crawler->setTotalCrawlLimit($this->maximumCrawlCount);
$this->crawler->setMaximumCrawlCount($this->maximumCrawlCount);
}

$this->crawler
Expand Down

1 comment on commit 6527aa9

@aymericauberger
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this method was not renamed on the Crawler class, so this generates an error if maximumCrawlCount is set.

Please sign in to comment.