Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Aug 17, 2016
1 parent 5aa4b85 commit 3b705cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SitemapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(Crawler $crawler)

$this->sitemap = new Sitemap();

$this->hasCrawled = function (Url $url, ResponseInterface $response) {
$this->hasCrawled = function (Url $url, ResponseInterface $response = null) {
return $url;
};

Expand Down Expand Up @@ -87,7 +87,7 @@ public function writeToFile($path)

protected function getObserver(): Observer
{
$performAfterUrlHasBeenCrawled = function (CrawlerUrl $crawlerUrl, ResponseInterface $response) {
$performAfterUrlHasBeenCrawled = function (CrawlerUrl $crawlerUrl, ResponseInterface $response = null) {
$sitemapUrl = ($this->hasCrawled)(Url::create((string) $crawlerUrl), $response);

if ($sitemapUrl) {
Expand Down

0 comments on commit 3b705cd

Please sign in to comment.