Skip to content

Commit

Permalink
Set return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fivefilters committed Jun 15, 2023
1 parent 2eba49b commit 45f2bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Readability.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ public function loadHTML(string $html)
* For now, only Schema.org objects of type Article or its subtypes are supported.
*
* @param DOMDocument $dom
* @return Object with any metadata that could be extracted (possibly none)
* @return array with any metadata that could be extracted (possibly none)
*/
private function getJSONLD(DOMDocument $dom)
private function getJSONLD(DOMDocument $dom): array
{
$scripts = $this->_getAllNodesWithTag($dom, ['script']);

Expand Down

0 comments on commit 45f2bba

Please sign in to comment.