From 203e50fec9ed503439a981d68864cec7f689ec57 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 7 Nov 2024 11:15:52 +0700 Subject: [PATCH] Update to use latest PHP 8.1 syntax Signed-off-by: Abdul Malik Ikhsan --- src/Runner/Runner.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Runner/Runner.php b/src/Runner/Runner.php index 25a23ac..9640af8 100644 --- a/src/Runner/Runner.php +++ b/src/Runner/Runner.php @@ -225,7 +225,10 @@ public function setConfig($config) } foreach ($config as $key => $val) { - $methodName = 'set' . implode(array_map(static fn($value): string => ucfirst($value), explode('_', $key))); + $methodName = 'set' . implode( + '', + array_map(static fn($value): string => ucfirst($value), explode('_', $key)) + ); if (! is_callable([$this, $methodName])) { throw new BadMethodCallException('Unknown config parameter ' . $key);