AddNameToNullArgumentRector

Add parameter names to null arguments.

-some_function($value, null);
+some_function($value, default: null);

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\CallLike\AddNameToNullArgumentRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        AddNameToNullArgumentRector::class,
    ]);