I put the following code in my template:
$a = WireArray([
WireArray([
'template' => 'basic',
'key' => 'animals',
]),
WireArray([
'template' => 'default',
'key' => 'default',
]),
]);
print_r($a);
Output:
ProcessWire\WireArray Object
(
[count] => 2
[items] => Array
(
[0] => ProcessWire\WireArray Object
(
[count] => 2
[items] => Array
(
[template] => basic
[key] => animals
)
)
[1] => ProcessWire\WireArray Object
(
[count] => 1
[items] => Array
(
[template] => default
)
)
)
)
So... where is the "key" of the 2nd array element?
It only happens if the value is "default".
Any ideas ? Thank you.
Edit: Newest Processwire 3.0.121