Skip to content

Commit

Permalink
Fix deprecated notice with PHP 8.2 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnavarro authored Nov 6, 2023
1 parent 02e4afb commit 6f39570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ACFComposer/ResolveConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function forFieldGroup($config)
self::pushSingleOrMultiple($carry, $fields);
return $carry;
}, []);
$output['location'] = array_map('self::mapLocation', $output['location']);
$output['location'] = array_map([self::class, 'mapLocation'], $output['location']);
return $output;
}

Expand Down Expand Up @@ -199,7 +199,7 @@ protected static function validateConfig($config, $requiredAttributes = [])
*/
protected static function mapLocation($locationArray)
{
return array_map('self::forLocation', $locationArray);
return array_map([self::class, 'forLocation'], $locationArray);
}

/**
Expand Down

0 comments on commit 6f39570

Please sign in to comment.