Skip to content

Commit

Permalink
Update to use latest PHP 8.1 syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Nov 7, 2024
1 parent 9a255ee commit 203e50f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Runner/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 203e50f

Please sign in to comment.