A crazy, crazy array ($d)
array(5) {
["input"]=>
string(23) "
yes"
["lowascii"]=>
string(14) " "
[0]=>
array(4) {
[0]=>
string(3) "foo"
[1]=>
string(9) "bar
"
[2]=>
string(6) "yes"
[3]=>
int(1776)
}
["x"]=>
array(1) {
["woot"]=>
array(2) {
["booyah"]=>
string(26) "meet at the bar at 7:30 pm"
["ultimate"]=>
string(26) "hi there!"
}
}
["lemon"]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
string(3) "far"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Create a cage for the array
Deprecated: Return type of Inspekt\Cage::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 113
Deprecated: Return type of Inspekt\Cage::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 141
Deprecated: Return type of Inspekt\Cage::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 /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 167
Deprecated: Return type of Inspekt\Cage::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 128
Deprecated: Return type of Inspekt\Cage::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 154
Deprecated: Return type of Inspekt\Cage::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 179
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
Deprecated: ArrayObject::__construct(): Using an object as a backing array for ArrayObject is deprecated, as it allows violating class constraints and invariants in /home/rosengar/Lib/inspekt/src/Inspekt/Inspekt.php on line 343
$d_cage->getAlpha('/x/woot/ultimate')
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, ArrayObject given in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php:1013
Stack trace:
#0 /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php(1013): array_key_exists('x', Object(ArrayObject))
#1 /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php(987): Inspekt\Cage->getValueRecursive(Array, Object(ArrayObject))
#2 /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php(342): Inspekt\Cage->getValue('x/woot/ultimate')
#3 /home/rosengar/Lib/inspekt/Examples/filter_array_cage.php(42): Inspekt\Cage->getAlpha('/x/woot/ultimat...')
#4 {main}
thrown in /home/rosengar/Lib/inspekt/src/Inspekt/Cage.php on line 1013