From 35c90ca238aa539f28388d0987cb92fc7ef422fd Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Tue, 26 Nov 2024 11:18:04 +0100 Subject: [PATCH] [Fix] installation problem on laravel 11 (#72) * Fix styling * Update Symfony Dom Crawler --------- Co-authored-by: Baspa --- composer.json | 2 +- src/helpers.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]] : [];