From dc0b4cc2b0c877390f682b9660399e4a94d4a8f2 Mon Sep 17 00:00:00 2001 From: Beno!t POLASZEK Date: Mon, 30 Sep 2019 14:03:17 +0200 Subject: [PATCH] Enable auto-generated recipe - Fix #15 --- composer.json | 1 + src/Twig/WebPushTwigExtension.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6fab12b..bdbac33 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,6 @@ { "name": "bentools/webpush-bundle", + "type": "symfony-bundle", "description": "Send push notifications through Web Push Protocol to your Symfony users.", "license": "MIT", "authors": [ diff --git a/src/Twig/WebPushTwigExtension.php b/src/Twig/WebPushTwigExtension.php index 24d4407..019d294 100644 --- a/src/Twig/WebPushTwigExtension.php +++ b/src/Twig/WebPushTwigExtension.php @@ -12,7 +12,7 @@ final class WebPushTwigExtension extends AbstractExtension implements GlobalsInt */ private $publicKey; - public function __construct(string $publicKey) + public function __construct(?string $publicKey) { $this->publicKey = $publicKey; }