Fatal error: Uncaught TypeError: Argument 1 passed to Services\DbContext::increaseRecipeViewsCount() must be of the type integer, null given, called in /home/becook/www/www2/src/services/RecipesService.php on line 228 and defined in /home/becook/www/www2/src/services/DbContext.php:177
Stack trace:
#0 /home/becook/www/www2/src/services/RecipesService.php(228): Services\DbContext->increaseRecipeViewsCount(NULL)
#1 /home/becook/www/www2/src/controllers/RecipeController.php(31): Services\RecipesService->increaseViewsCount(Object(Models\Recipe))
#2 /home/becook/www/www2/src/models/Router.php(75): Controllers\RecipeController->get(Array, 'en-us', Object(stdClass))
#3 /home/becook/www/www2/src/models/App.php(28): Models\Router::route(Array, Object(Models\Lang), Object(stdClass))
#4 /home/becook/www/www2/index.php(16): Models\App->run()
#5 {main}
thrown in /home/becook/www/www2/src/services/DbContext.php on line 177