EXCEPTION:

CityRepository::save(): Argument #1 ($city) must be of type string, null given, called in /home/test/www/app/city/repository.php on line 21

TypeError: CityRepository::save(): Argument #1 ($city) must be of type string, null given, called in /home/test/www/app/city/repository.php on line 21 and defined in /home/test/www/app/city/repository.php:51
47:
48: return [$_COOKIE['city'], $nodeLogistic, json_decode($nodeLogistic->settings, true)];
49: }
50:
51: private static function save(string $city, string $domain)
52: {
53: setcookie('city', $city, 0, '/', '.'.DOMAIN);
54: setcookie('domain', $domain, 0, '/', '.'.DOMAIN);
55: }
56:
57: private static function saveUserCities($request)

Stack trace: #0 /home/test/www/app/city/repository.php(21): CityRepository::save() #1 /home/test/www/app/index/index.php(41): CityRepository::nodeLogistic() #2 /home/test/www/app/catalog/index.php(93): BaseView->init() #3 /home/test/www/vendor/mad/core/view.php(34): CatalogCategoryView->init() #4 /home/test/www/vendor/mad/index.php(253): 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}