Skip to content

Commit

Permalink
fixup! Add ability to process prefetched content
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Decherf <[email protected]>
  • Loading branch information
Kdecherf committed Jan 15, 2022
1 parent 74f7fcb commit 062b1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Graby.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function cleanupHtml($contentBlock, string $url): string
return trim($this->cleanupXss((string) $html));
}

private function getResponseForPrefetchedContent($url, $prefetchedContent)
private function getResponseForPrefetchedContent(string $url, string $prefetchedContent): array
{
return [
'body' => $prefetchedContent,
Expand Down
2 changes: 1 addition & 1 deletion tests/GrabyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ public function testWithTooLongHtmlJitFail(): void
$this->assertNotSame('No title found', $res['title']);
}

public function testPrefetchedContent()
public function testPrefetchedContent(): void
{
$httpMockClient = new HttpMockClient();
$graby = new Graby([
Expand Down

0 comments on commit 062b1e6

Please sign in to comment.