From f3fa4370c73f51de782882c0729de05d7135fccf Mon Sep 17 00:00:00 2001 From: Jeremy Coates Date: Thu, 13 Oct 2022 15:50:17 +0100 Subject: [PATCH] Fix creation of 'all' group to allow null user to be passed --- src/Rollout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rollout.php b/src/Rollout.php index c5d8db5..8efee3e 100644 --- a/src/Rollout.php +++ b/src/Rollout.php @@ -29,7 +29,7 @@ public function __construct(StorageInterface $storage) { $this->storage = $storage; $this->groups = array( - 'all' => function(RolloutUserInterface $user) { return $user !== null; } + 'all' => function(?RolloutUserInterface $user) { return $user !== null; } ); }