Fatal error: Uncaught TypeError: Argument 1 passed to Application\Model\Departments::fetchByCode() must be of the type string, null given, called in /home/m/medlinepro/barnaul.medline.pro/module/Application/src/Router/ClinicRouter.php on line 127 and defined in /home/m/medlinepro/barnaul.medline.pro/module/Application/src/Model/Departments.php:106 Stack trace: #0 /home/m/medlinepro/barnaul.medline.pro/module/Application/src/Router/ClinicRouter.php(127): Application\Model\Departments->fetchByCode(NULL) #1 /home/m/medlinepro/barnaul.medline.pro/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php(316): Application\Router\ClinicRouter->match(Object(Zend\Http\PhpEnvironment\Request), NULL, Array) #2 /home/m/medlinepro/barnaul.medline.pro/vendor/zendframework/zend-mvc/src/RouteListener.php(45): Zend\Router\Http\TreeRouteStack->match(Object(Zend\Http\PhpEnvironment\Request)) #3 /home/m/medlinepro/barnaul.medline.pro/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\RouteListener->onRoute(Object( in /home/m/medlinepro/barnaul.medline.pro/module/Application/src/Model/Departments.php on line 106