Deprecated: Return type of OpenStruct::offsetGet($key) should either be compatible with ArrayObject::offsetGet(mixed $key): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/hFIGn on line 18
Deprecated: Return type of OpenStruct::offsetSet($key, $value) should either be compatible with ArrayObject::offsetSet(mixed $key, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/hFIGn on line 9
Deprecated: Return type of Struct::offsetUnset($key) should either be compatible with ArrayObject::offsetUnset(mixed $key): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/hFIGn on line 80
Hobby: Football
Hobby: Ice Hockey
Hobby: Formula 1
Warning: Undefined array key "toJson" in /in/hFIGn on line 30
JSON:
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Awesome Country
)
)
[hobbies] => OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[0] => Football
[1] => Ice Hockey
[2] => Formula 1
)
)
)
)
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[name] => John
)
)
Struct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[hobbies] => Array
(
[0] => Football
[1] => Ice Hockey
[2] => Formula 1
)
)
)
Cannot change Struct
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Canada
)
[foo] => bar
)
)
Struct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Canada
)
)
)
Cannot change Struct
Joe SmithOpenStruct Object
(
[storage:ArrayObject:private] => stdClass Object
(
[first] => Joe
[last] => Bloggs
)
)
Struct Object
(
[storage:ArrayObject:private] => stdClass Object
(
[first] => Joe
[last] => Bloggs
)
)
Cannot change Struct
Output for 8.0.0 - 8.0.30
Hobby: Football
Hobby: Ice Hockey
Hobby: Formula 1
Warning: Undefined array key "toJson" in /in/hFIGn on line 30
JSON:
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Awesome Country
)
)
[hobbies] => OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[0] => Football
[1] => Ice Hockey
[2] => Formula 1
)
)
)
)
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[name] => John
)
)
Struct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[hobbies] => Array
(
[0] => Football
[1] => Ice Hockey
[2] => Formula 1
)
)
)
Cannot change Struct
OpenStruct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Canada
)
[foo] => bar
)
)
Struct Object
(
[storage:ArrayObject:private] => Array
(
[first] => Joe
[last] => Bloggs
[age] => 20
[address] => Array
(
[address] => 123 Alphabet Street
[city] => Awesome City
[postcode] => ABC 123
[country] => Canada
)
)
)
Cannot change Struct
Joe SmithOpenStruct Object
(
[storage:ArrayObject:private] => stdClass Object
(
[first] => Joe
[last] => Bloggs
)
)
Struct Object
(
[storage:ArrayObject:private] => stdClass Object
(
[first] => Joe
[last] => Bloggs
)
)
Cannot change Struct