Run Rector on your code to see what it can do for you:
{ } -foo(b: null, a: 'test'); +foo(a: 'test');
Applied Rules:
Not a change you expect?
rector.php