From 2a301921db65a0844f7e2cb21f04708ab6a1942c Mon Sep 17 00:00:00 2001 From: borekon Date: Mon, 10 Oct 2022 13:29:56 +0000 Subject: [PATCH] Compatibility with php 8.0 Curly braces no longer supported from php 7.4 --- src/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.php b/src/controller.php index 377258b..bebd627 100644 --- a/src/controller.php +++ b/src/controller.php @@ -55,7 +55,7 @@ class RedirectToRandomAddressController { } public static function invoke(ImapClient $imapClient, array $config) { - $address = User::get_random_address($config{'domains'}); + $address = User::get_random_address($config['domains']); RedirectToAddressController::render($address); } }