Skip to content

Commit

Permalink
use PHP 8.1 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Mar 10, 2024
1 parent 919de80 commit 1bf1eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/readable.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function value(mixed $value): string
*/
public static function values(array $array): string
{
$formatted = array_map(['mindplay\\readable', 'value'], $array);
$formatted = array_map(static::value(...), $array);

if (array_keys($array) !== range(0, count($array) - 1)) {
foreach ($formatted as $name => $value) {
Expand Down

0 comments on commit 1bf1eeb

Please sign in to comment.