One of my colleagues wrote this code that builds an array for a chart:
$results = array_build(range($days - 1, 0), function ($k, $v) use ($dateFormat) {
return [Carbon::today()->subDays($v)->format($dateFormat), [
'0' => 0,
'1' => 0
]];
});
I just finished an upgrade from Laravel 5.2 to 5.3 and now get the following exception:
Call to undefined function App\Repositories\array_build()
I'm not exactly sure how his code works (hence I do not find the array_build method) and therefore cannot get it back working.