diff --git a/composer.json b/composer.json index c4d3228..748856e 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "jeremykendall/php-domain-parser": "^6.3", "spatie/browsershot": "^3.0|^4.0", "spatie/laravel-package-tools": "^1.13", - "symfony/dom-crawler": "^6.2", + "symfony/dom-crawler": "^6.2|^7.0", "symfony/finder": "^6.2|^7.0", "vipnytt/robotstxtparser": "^2.1" }, diff --git a/src/helpers.php b/src/helpers.php index 0b35c40..dc9fbb6 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -72,7 +72,7 @@ function getRemoteFileSize(string $url): int if (! isset($contentLength)) { $options = (array) config('seo.http.options', []); - $context = isset($options['verify']) && !$options['verify'] + $context = isset($options['verify']) && ! $options['verify'] ? $context = ['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]] : [];