Skip to content

Commit 5b61fea

Browse files
authored
Allow Symfony 8 (#115)
Regards
2 parents 7a6ba33 + 247b7e5 commit 5b61fea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"ext-pcntl": "*",
2020
"guzzlehttp/guzzle": "^6.0.0||^7.0.0",
2121
"pdepend/pdepend": "^2.16.1",
22-
"symfony/css-selector": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0",
23-
"symfony/dom-crawler": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0",
24-
"symfony/finder": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0",
25-
"symfony/event-dispatcher": "^4.0.0||^5.0.0||^6.0||^7.0",
22+
"symfony/css-selector": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0||^8.0",
23+
"symfony/dom-crawler": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0||^8.0",
24+
"symfony/finder": "^3.0.0||^4.0.0||^5.0.0||^6.0||^7.0||^8.0",
25+
"symfony/event-dispatcher": "^4.0.0||^5.0.0||^6.0||^7.0||^8.0",
2626
"vdb/uri": "^0.3.2",
2727
"spatie/robots-txt": "^2.0",
2828
"phan/phan": "^4.0||^5.0||^6.0"

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)