Skip to content

Commit

Permalink
Allow Symfony 7 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar authored Jun 12, 2024
1 parent 3d73147 commit be18f93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"nyholm/psr7": "^1.1",
"psr/http-message": "^1.0 || ^2.0",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"symfony/clock": "^6.2",
"symfony/dom-crawler": "^5.4 || ^6.0",
"symfony/event-dispatcher": "^5.4 || ^6.0",
"symfony/http-client": "^5.4 || ^6.0",
"symfony/clock": "^6.2 || ^7.0",
"symfony/dom-crawler": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
"symfony/http-client": "^5.4 || ^6.0 || ^7.0",
"webignition/robots-txt-file": "^3.0"
},
"require-dev": {
"doctrine/dbal": "^3.6",
"fig/log-test": "^1.0",
"symfony/finder": "^5.4|| ^6.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"symfony/finder": "^5.4|| ^6.0 || ^7.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0",
"terminal42/contao-build-tools": "@dev"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion tests/EscargotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function testCrawlAsWebCrawler(\Closure $responseFactory, array $expected
$this->assertSame($expectedRequests, $filteredRequests, $message);
}

public function crawlProvider(): \Generator
public static function crawlProvider(): iterable
{
$finder = new Finder();
$finder->in([__DIR__.'/Fixtures'])->directories()->sortByName(true);
Expand Down
2 changes: 1 addition & 1 deletion tests/Subscriber/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testIsAllowedToFollow(CrawlUri $crawlUri, Escargot $escargot, bo
$this->assertSame($expected, Util::isAllowedToFollow($crawlUri, $escargot));
}

public function isAllowedToFollowProvider(): \Generator
public function isAllowedToFollowProvider(): iterable
{
yield 'Found on an URI that should not be followed according to the x-robots-tag header or <meta name="robots"> information' => [
new CrawlUri(new Uri('https://www.terminal42.ch/foobar'), 1, false, new Uri('https://www.terminal42.ch')),
Expand Down

0 comments on commit be18f93

Please sign in to comment.