diff --git a/classes/module/ModuleGraph.php b/classes/module/ModuleGraph.php index 190787bfe..0d659dca0 100644 --- a/classes/module/ModuleGraph.php +++ b/classes/module/ModuleGraph.php @@ -319,7 +319,7 @@ abstract class ModuleGraphCore extends Module return call_user_func(array($render, 'hookGraphEngine'), $params, $drawer); } - protected static function getEmployee($employee = null, Context $context = null) + protected static function getEmployee($employee = null, ?Context $context = null) { if (!Validate::isLoadedObject($employee)) { if (!$context) { diff --git a/modules/hotelreservationsystem/classes/HotelHelper.php b/modules/hotelreservationsystem/classes/HotelHelper.php index f313ddcaa..597143379 100644 --- a/modules/hotelreservationsystem/classes/HotelHelper.php +++ b/modules/hotelreservationsystem/classes/HotelHelper.php @@ -2130,7 +2130,7 @@ class HotelHelper ); foreach ($categories as &$category) { - $idCategory = $this->addCategory($category['name'], $idCategoryServices, $idsGroup); + $idCategory = $this->addCategory(array('name' => $category['name'], 'group_ids' => $idsGroup, 'parent_category' => $idCategoryServices)); $category['id_category'] = $idCategory; } @@ -2529,7 +2529,7 @@ class HotelHelper $languages = Language::getLanguages(true); if ($is_hotel && $id_hotel) { $cat_id_hotel = Db::getInstance()->getValue( - 'SELECT `id_category` FROM `'._DB_PREFIX_.'htl_branch_info` WHERE id='.$hotel_id + 'SELECT `id_category` FROM `'._DB_PREFIX_.'htl_branch_info` WHERE id='.$id_hotel ); if ($cat_id_hotel) { $obj_cat = new Category($cat_id_hotel); @@ -2577,7 +2577,7 @@ class HotelHelper $obj->link_rewrite[$lang['id_lang']] = Tools::link_rewrite($defaultCatName); } } - $obj->id_parent = $parent_cat; + $obj->id_parent = $parent_category; $obj->groupBox = $group_ids; $obj->add(); $cat_id = $obj->id; diff --git a/modules/hotelreservationsystem/classes/HotelRoomTypeDemand.php b/modules/hotelreservationsystem/classes/HotelRoomTypeDemand.php index 83c33c49e..336a294ec 100644 --- a/modules/hotelreservationsystem/classes/HotelRoomTypeDemand.php +++ b/modules/hotelreservationsystem/classes/HotelRoomTypeDemand.php @@ -205,7 +205,7 @@ class HotelRoomTypeDemand extends ObjectModel $idCustomer = null, $idCart = null, $id_address = null, - Context $context = null, + ?Context $context = null, $customPrice = null ) { if (!$context) {