We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f5b19 commit 69fa037Copy full SHA for 69fa037
src/Detectors/Languages.php
@@ -17,7 +17,7 @@ public function detect(): array
17
$language = $node->getAttribute('hreflang');
18
$href = $node->getAttribute('href');
19
20
- if (isEmpty()) {
+ if (self::isEmpty($language) || self::isEmpty($href)) {
21
continue;
22
}
23
@@ -27,7 +27,7 @@ public function detect(): array
27
return $languages;
28
29
30
- private function isEmpty($value): boolval
+ private function isEmpty(string $value): bool
31
{
32
$skipValues = array(
33
'undefined',
0 commit comments