Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to AppBundle\Core\Repository\OfferService::getOfferItems() must be of the type integer, null given, called in /app/ezplatform/src/AppBundle/Core/Cart.php on line 346 in /app/ezplatform/src/AppBundle/Core/Repository/OfferService.php:43
Stack trace:
#0 /app/ezplatform/src/AppBundle/Core/Cart.php(346): AppBundle\Core\Repository\OfferService->getOfferItems(NULL)
#1 /app/ezplatform/src/AppBundle/Controller/Front/SubscriptionController.php(139): AppBundle\Core\Cart->addOffer(Object(eZ\Publish\Core\Repository\Values\Content\Content))
#2 /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): AppBundle\Controller\Front\SubscriptionController->addToCart(Object(eZ\Publish\Core\Repository\Values\Content\Content))
#3 /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFounda in /app/ezplatform/src/AppBundle/Core/Repository/OfferService.php on line 43