From a1c8309e4b3d8d5468c2defbc8bbae95633aff90 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 2 Apr 2023 18:57:18 +0200 Subject: [PATCH] Fix string array access in php 8 --- src/phinde/LinkExtractor/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phinde/LinkExtractor/Html.php b/src/phinde/LinkExtractor/Html.php index b3a9ea6..299ed91 100644 --- a/src/phinde/LinkExtractor/Html.php +++ b/src/phinde/LinkExtractor/Html.php @@ -61,7 +61,7 @@ class Html } } } - if ($href == '' || $href{0} == '#') { + if ($href == '' || $href[0] == '#') { //link on this page continue; } -- 2.30.2