Notice: Undefined offset: 2 in /www/inpage.new/app/controllers/inpage/default/plugins/Service.php on line 92

Fatal error: Uncaught TypeError: Return value of Inpage\models\Branches::fetchBranchById() must be an instance of Inpage\models\Branch, array returned in /www/inpage.new/modules/Inpage/src/models/Branches.php:40 Stack trace: #0 /www/inpage.new/app/controllers/inpage/default/IndexController.php(115): Inpage\models\Branches->fetchBranchById(1) #1 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(502): IndexController->preDispatch() #2 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('articleAction') #3 /www/inpage.new/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #4 /www/inpage.new/wwwroot-inpage/index.php(32): Zend_Controller_Front->dispatch() #5 {main} thrown in /www/inpage.new/modules/Inpage/src/models/Branches.php on line 40