Skip to content

Commit 6f39570

Browse files
Fix deprecated notice with PHP 8.2 (#27)
1 parent 02e4afb commit 6f39570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ACFComposer/ResolveConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function forFieldGroup($config)
2323
self::pushSingleOrMultiple($carry, $fields);
2424
return $carry;
2525
}, []);
26-
$output['location'] = array_map('self::mapLocation', $output['location']);
26+
$output['location'] = array_map([self::class, 'mapLocation'], $output['location']);
2727
return $output;
2828
}
2929

@@ -199,7 +199,7 @@ protected static function validateConfig($config, $requiredAttributes = [])
199199
*/
200200
protected static function mapLocation($locationArray)
201201
{
202-
return array_map('self::forLocation', $locationArray);
202+
return array_map([self::class, 'forLocation'], $locationArray);
203203
}
204204

205205
/**

0 commit comments

Comments
 (0)