Skip to content

Commit 004749a

Browse files
mhsdesignrolandschuetz
authored andcommitted
!!! Feature: php 8.1 safe
update the library `spatie/crawler` to v6 since its dependency in the v4 `tightenco/collect` doesnt work with php8.1 in the required version. requires us to use at least php 7.4 so this is a breaking change, as we don't support php 7.1 - 7.3 anymore
1 parent 97b73e0 commit 004749a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Classes/Profile/CheckAllLinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace CodeQ\LinkChecker\Profile;
66

7-
use Spatie\Crawler\CrawlAllUrls;
7+
use Spatie\Crawler\CrawlProfiles\CrawlAllUrls;
88

99
class CheckAllLinks extends CrawlAllUrls
1010
{

Classes/Reporter/BaseReporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
use Neos\Flow\Annotations as Flow;
1111
use Neos\Flow\Cli\ConsoleOutput;
1212
use Neos\Flow\Persistence\Exception\IllegalObjectTypeException;
13-
use Spatie\Crawler\CrawlObserver;
1413
use Psr\Http\Message\UriInterface;
1514
use Psr\Http\Message\ResponseInterface;
1615
use GuzzleHttp\Exception\RequestException;
16+
use Spatie\Crawler\CrawlObservers\CrawlObserver;
1717

1818
abstract class BaseReporter extends CrawlObserver
1919
{

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"type": "neos-package",
55
"license": "GPL-3.0-or-later",
66
"require": {
7+
"php": "^7.4 || ^8.0",
78
"league/csv": "^9.1",
89
"neos/neos": "^4.3 || 5 - 8 || dev-master",
910
"neos/swiftmailer": "^7.3.0",
1011
"psr/log": "^1.1 || ^2.0 || ^3.0",
1112
"sitegeist/fusionlinkprototypes": "^1.0",
12-
"spatie/crawler": "^4.1",
13+
"spatie/crawler": "^6.0",
1314
"symfony/polyfill-php80": "^1.16"
1415
},
1516
"autoload": {
@@ -43,4 +44,4 @@
4344
"Neos.Flow-20201207104500"
4445
]
4546
}
46-
}
47+
}

0 commit comments

Comments
 (0)