bpolaszek/webpush-bundle

Bug in example UserSubscriptionManagerInterface

Closed this issue · 1 comments

Hi,

just to tell you that i tried you example UserSubscriptionManagerInterface class, but i had a fatal error.

I just add =[] and to get it works

public function factory(UserInterface $user, string $subscriptionHash, array $subscription, array $options): UserSubscriptionInterface

to

public function factory(UserInterface $user, string $subscriptionHash, array $subscription, array $options=[]): UserSubscriptionInterface

Hey @stephrsh,

Thanks for pointing it out. 👍