Skip to content

Commit c83dd9d

Browse files
committed
Attempt to fix Crawler on Symfony 8.
1 parent a24a152 commit c83dd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(DiscoveredUri $uri, ResponseInterface $response)
3535
public function getCrawler(): Crawler
3636
{
3737
if ($this->crawler == null) {
38-
$this->crawler = new Crawler('', $this->getUri()->toString());
38+
$this->crawler = new Crawler(null, $this->getUri()->toString());
3939
$this->crawler->addContent(
4040
$this->getResponse()->getBody()->__toString(),
4141
$this->getResponse()->getHeaderLine('Content-Type')

0 commit comments

Comments
 (0)