Skip to content

Commit

Permalink
Added return type to offsetGet method
Browse files Browse the repository at this point in the history
in PHPHtmlParser/Dom/Node/Collection class
  • Loading branch information
omidfarahani committed Nov 7, 2023
1 parent 4e01a43 commit dccc6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPHtmlParser/Dom/Node/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function offsetUnset($offset): void
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return $this->collection[$offset] ?? null;
}
Expand Down

0 comments on commit dccc6ed

Please sign in to comment.