Implements __debugInfo()

2.x 1.0.1
Julien Rosset 3 years ago
parent b8dc4c2e79
commit d56366fbfb

@ -57,6 +57,18 @@ class ImmutableArrayClass implements IteratorAggregate, JsonSerializable, Serial
public function __invoke ($offset) {
return $this->get($offset);
}
/**
* Set information to dump
*
* @return array The information to dump
*
* @see https://www.php.net/manual/function.var-dump.php
*/
public function __debugInfo (): array {
return [
'array' => $this->array,
];
}
/**
* Check if a cell offset exists

Loading…
Cancel
Save