EXCEPTION:

implode(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type array, null given

TypeError: implode(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type array, null given in /home/test/www/app/city/repository.php:53
49:
50: } else {
51: $nodeLogistic = NodeLogistic::filter(['name_subdomain' => $domain])->first();
52: $city = $nodeLogistic->name;
53: \Cookie::set('cityCoords', implode(',',json_decode($nodeLogistic->coords, true)));
54: setcookie('domain', $nodeLogistic->name_subdomain, 0, '/', '.'.DOMAIN);
55: }
56:
57: $nodeLogisticData = json_decode($nodeLogistic->settings, true);
58:
59: return [$city, $nodeLogistic, $nodeLogisticData];

Stack trace: #0 /home/test/www/app/city/repository.php(53): implode() #1 /home/test/www/app/index/index.php(41): CityRepository::nodeLogistic() #2 /home/test/www/app/index/index.php(129): BaseView->init() #3 /home/test/www/vendor/mad/core/view.php(34): IndexView->init() #4 /home/test/www/vendor/mad/index.php(226): Views\View->__construct() #5 /home/test/www/vendor/mad/index.php(91): Mad::checkRoutes() #6 /home/test/www/vendor/mad/index.php(339): Mad::start() #7 /home/test/www/public/index.php(4): require('...') #8 {main}