Skip to content

Commit

Permalink
Merge pull request spatie#392 from spatie/bug/crawler-v7
Browse files Browse the repository at this point in the history
add return type according to the contract
  • Loading branch information
Nielsvanpach authored May 27, 2021
2 parents df81c61 + a0d7e43 commit ace3ad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Crawler/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public function __construct(callable $hasCrawled)
*
* @param \Psr\Http\Message\UriInterface $url
*/
public function willCrawl(UriInterface $url)
public function willCrawl(UriInterface $url): void
{
}

/**
* Called when the crawl has ended.
*/
public function finishedCrawling()
public function finishedCrawling(): void
{
}

Expand All @@ -44,7 +44,7 @@ public function crawled(
UriInterface $url,
ResponseInterface $response,
?UriInterface $foundOnUrl = null
) {
): void {
($this->hasCrawled)($url, $response);
}

Expand All @@ -59,6 +59,6 @@ public function crawlFailed(
UriInterface $url,
RequestException $requestException,
?UriInterface $foundOnUrl = null
) {
): void {
}
}

0 comments on commit ace3ad3

Please sign in to comment.