diff --git a/src/OEmbed.php b/src/OEmbed.php index d8736969..e089150e 100644 --- a/src/OEmbed.php +++ b/src/OEmbed.php @@ -165,7 +165,7 @@ private function extractJSON(string $json): array try { $data = json_decode($json, true); - return $data ? ($data + $this->defaults) : []; + return is_array($data) ? ($data + $this->defaults) : []; } catch (Exception $exception) { return []; }