Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Deprecated: Return type php 8
Deprecated: Return type of PHPHtmlParser\Dom\Node\Collection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wp-content/plugins/sage/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/Node/Collection.php on line 133
  • Loading branch information
Lenny4 authored May 26, 2024
commit 80494297734bf3ec8498daee7fca142cf66ab357
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(mixed $offset): mixed
{
return $this->collection[$offset] ?? null;
}
Expand Down