Fatal error: Uncaught TypeError: app\services\GiftService::getRealGiftPrice(): Argument #1 ($gift) must be of type app\models\Gift, null given, called in /var/www/yougift/data/www/emodika.ru/releases/39/app/controllers/TradeController.php on line 52 and defined in /var/www/yougift/data/www/emodika.ru/releases/39/app/services/GiftService.php:23 Stack trace: #0 /var/www/yougift/data/www/emodika.ru/releases/39/app/controllers/TradeController.php(52): app\services\GiftService::getRealGiftPrice(NULL) #1 /var/www/yougift/data/www/emodika.ru/releases/39/app/core/App.php(160): app\controllers\TradeController->ordering(Object(app\core\http\Request)) #2 /var/www/yougift/data/www/emodika.ru/releases/39/index.php(15): app\core\App->run() #3 {main} thrown in /var/www/yougift/data/www/emodika.ru/releases/39/app/services/GiftService.php on line 23