;
}
/**
* @param mixed $offset
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet( $offset ) {
return $this->items[ $offset ];
}
/**
* @param mixed $offset
* @param mixed $value
*/
#[\ReturnTypeWillChange]
public function offsetSet( $offset, $value ) {
if ( is_null( $offset ) ) {
$this->items[] = $value;
} else {
$this->items[ $offset ] = $value;
}
}
/**
* @param mixed $offset
*/
#[\ReturnTypeWillChange]
public function offsetUnset( $offset ) {
unset( $this->items[ $offset ] );
}
/**
* @return \ArrayIterator|\Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator() {
return new \ArrayIterator( $this->items );
}
/**
* @return int|void
*/
#[\ReturnTypeWillChange]
public function count() {
return count( $this->items );
}
/**
* @param $item
* @param $key
* @param null $default
*
* @return mixed|null
*/
private function get_item_value( $item, $key, $default = null ) {
$value = $default;
if ( is_object( $item ) && isset( $item->{$key} ) ) {
$value = $item->{$key};
} elseif ( is_array( $item ) && isset( $item[ $key ] ) ) {
$value = $item[ $key ];
}
return $value;
}
}
Fatal error: Uncaught Error: Class 'Elementor\Core\Utils\Collection' not found in /home/sportuga/public_html/wp-content/plugins/elementor/core/utils/static-collection.php:28
Stack trace:
#0 /home/sportuga/public_html/wp-content/plugins/elementor/modules/favorites/favorites-type.php(14): Elementor\Core\Utils\Static_Collection->__construct(Array, true)
#1 /home/sportuga/public_html/wp-content/plugins/elementor/modules/favorites/types/widgets.php(18): Elementor\Modules\Favorites\Favorites_Type->__construct(Array)
#2 /home/sportuga/public_html/wp-content/plugins/elementor/modules/favorites/module.php(173): Elementor\Modules\Favorites\Types\Widgets->__construct()
#3 /home/sportuga/public_html/wp-content/plugins/elementor/modules/favorites/module.php(45): Elementor\Modules\Favorites\Module->register('Elementor\\Modul...')
#4 /home/sportuga/public_html/wp-content/plugins/elementor/core/base/module.php(85): Elementor\Modules\Favorites\Module->__construct()
#5 /home/sportuga/public_html/wp-content/plugins/elementor/core/modules-ma in /home/sportuga/public_html/wp-content/plugins/elementor/core/utils/static-collection.php on line 28