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 2ac3258 commit 81b943dCopy full SHA for 81b943d
src/LinkedData.php
@@ -72,6 +72,13 @@ protected function fetchData(): array
72
private static function getValue(Node $node, string ...$keys)
73
{
74
foreach ($keys as $key) {
75
+ if (is_array($node)) {
76
+ $node = array_shift($node);
77
+ }
78
+ if (!$node instanceof Node) {
79
+ return null;
80
81
+
82
$node = $node->getProperty("http://schema.org/{$key}");
83
84
if (!$node) {
0 commit comments