Limpieza de objetos externos
This commit is contained in:
@ -14,15 +14,6 @@ return [
|
||||
'name' => $_ENV['MYSQL_DATABASE']
|
||||
]
|
||||
];
|
||||
function toObj($arr) {
|
||||
$obj = (object) $arr;
|
||||
foreach ($arr as $k => $v) {
|
||||
if (is_array($v)) {
|
||||
$obj->{$k} = toObj($v);
|
||||
}
|
||||
}
|
||||
return $obj;
|
||||
}
|
||||
return (object) ['databases' => toObj($arr), 'short_names' => true];
|
||||
return (object) ['databases' => \ProVM\Implement\Collection::fromArray($arr), 'short_names' => true];
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user