Change concat assign on a new array item to plain assign, as the new item is always null
-$values[] .= $name;
+$values[] = $name;
Configure your rector.php:
<?php
use Rector\CodeQuality\Rector\AssignOp\NewArrayItemConcatAssignToAssignRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
NewArrayItemConcatAssignToAssignRector::class,
]);