for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ghc\Rosetta\Transformers;
class TransposeValues extends Transformer
{
/**
* @param array $data
*
* @return array
*/
public function transform($data)
return array_map(null, ...$data);
$data
$arr1
array_map()
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
return array_map(null, /** @scrutinizer ignore-type */ ...$data);
}