Skip to content

Commit df00be1

Browse files
authored
Merge pull request #113 from StefanSchuechl/patch-1
Fix `parse_url()` path error on home page in Rules\ThreeSegmentUrls
2 parents abd1697 + 83dccac commit df00be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reporting/Rules/ThreeSegmentUrls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function siteWarningComment()
2727

2828
public function processPage()
2929
{
30-
$url = parse_url($this->page->url())['path'];
30+
$url = parse_url($this->page->url())['path'] ?? '/';
3131
$this->slashes = substr_count($url, '/');
3232
}
3333

0 commit comments

Comments
 (0)