From 27ac93e3a86cb79ebe185b0dcdf9f56f9321310a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Suwi=C5=84ski?= Date: Fri, 13 Nov 2020 18:10:00 +0100 Subject: [PATCH] removed ending trailing comma on fields_mapper arguments list (allowed since php 7.4) --- auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 41e2018..b59420c 100644 --- a/auth.php +++ b/auth.php @@ -141,7 +141,7 @@ class auth_plugin_emailotp extends auth_plugin_base { $fields += array_filter( (new \auth_emailotp\fields_mapper( $this->config->fieldsmapping_pattern, - strtolower($username), + strtolower($username) ))->map(array_map(function($mapping) { return trim($mapping); }, explode(PHP_EOL, $this->config->fieldsmapping_mapping))),