diff --git a/src/ArrayClasses/ImmutableArrayClass.php b/src/ArrayClasses/ImmutableArrayClass.php index 780d952..27ab345 100644 --- a/src/ArrayClasses/ImmutableArrayClass.php +++ b/src/ArrayClasses/ImmutableArrayClass.php @@ -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