for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
require_once __DIR__.'/../vendor/autoload.php';
if (! function_exists('array_map_keys')) {
/**
* @param array $input
* @param callable $callback
*
* @return array
*/
function array_map_keys($input, $callback)
{
$output = [];
foreach ($input as $key => $value) {
$output[] = $callback($key, $value);
}
return $output;