@@ -45,7 +45,7 @@ |
||
45 | 45 | || empty($components['path']) |
46 | 46 | // "/" path are not allowed |
47 | 47 | || trim($components['path']) === '/' |
48 | - || $link->firstChild()?->getLiteral() !== $link->getUrl() |
|
48 | + || $link->firstChild() ? ->getLiteral() !== $link->getUrl() |
|
49 | 49 | ) { |
50 | 50 | return false; |
51 | 51 | } |