-
-
Notifications
You must be signed in to change notification settings - Fork 182
Description
When we try to use the "Copy Value as json_encode" or "Copy Value as var_export" of an array with empty elements the copy doesn't work.
If I try to copy the $table from the code below it works:
$table = [];
for ($i = 0; $i < 99; $i++) {
$table[$i] = [$i];
}But if I change the code to the following I get an error:
$table = [];
for ($i = 0; $i < 99; $i++) {
$table[$i] = [$i];
}
$table[50] = [];The error in the logs :
<- evaluateResponse
Response {
seq: 0,
type: 'response',
request_seq: 50,
command: 'evaluate',
success: false,
message: 'This property has no children' }