# Feature Request RE: https://github.com/rectorphp/rector-src/pull/8000#issuecomment-4554134472 It would be useful if `RemoveNullArgOnNullDefaultParamRector` could run after `AddNameToNullArgumentRector`, when the `deadCode` set is enabled. ## Example Currently, `AddNameToNullArgumentRector` transforms: ```diff -$table->addRow(null, $styles['cant-split']); +$table->addRow(height: null, style: $styles['cant-split']); ``` It would be beneficial if this could be further reduced (when `deadCode` is enabled) to: ```diff -$table->addRow(height: null, style: $styles['cant-split']); +$table->addRow(style: $styles['cant-split']); ``` (Reference: https://github.com/PHPOffice/PHPWord/blob/master/src/PhpWord/Element/Table.php#L67) --- > [!NOTE] > This behaviour could potentially also apply to `AddNameToBooleanArgumentRector`, if a corresponding `RemoveBooleanArgOnBooleanDefaultParamRector` existed.
Feature Request
RE: rectorphp/rector-src#8000 (comment)
It would be useful if
RemoveNullArgOnNullDefaultParamRectorcould run afterAddNameToNullArgumentRector, when thedeadCodeset is enabled.Example
Currently,
AddNameToNullArgumentRectortransforms:It would be beneficial if this could be further reduced (when
deadCodeis enabled) to:(Reference: https://github.com/PHPOffice/PHPWord/blob/master/src/PhpWord/Element/Table.php#L67)
Note
This behaviour could potentially also apply to
AddNameToBooleanArgumentRector, if a correspondingRemoveBooleanArgOnBooleanDefaultParamRectorexisted.