Skip to content

Commit 69fa037

Browse files
committed
Fix undefined function without parameter
1 parent a6f5b19 commit 69fa037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Detectors/Languages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function detect(): array
1717
$language = $node->getAttribute('hreflang');
1818
$href = $node->getAttribute('href');
1919

20-
if (isEmpty()) {
20+
if (self::isEmpty($language) || self::isEmpty($href)) {
2121
continue;
2222
}
2323

@@ -27,7 +27,7 @@ public function detect(): array
2727
return $languages;
2828
}
2929

30-
private function isEmpty($value): boolval
30+
private function isEmpty(string $value): bool
3131
{
3232
$skipValues = array(
3333
'undefined',

0 commit comments

Comments
 (0)