actions
actions copied to clipboard
rector config adjustments
- Max line length for constructor property promotion (https://github.com/rectorphp/rector/issues/7514).
- Remove PHPDoc tags for params without a type, for example:
@param $value. - Add
usestatement:- After replacing string containing class name with
::class. - After adding interface to "implements".
- After replacing string containing class name with
- Remove psalm tags when they add nothing new, for example
@psalm-return ContainerInterfacewithContainerInterfaceas return type hint. - Constructor property promotion - constructor's argument type hint is deleted when does not match property's type hint.
Also good to ignore Rector\Php70\Rector\FuncCall\NonVariableToVariableOnFunctionCallRector rule.
It tries to change
extract(func_get_arg(1));
to
$var = func_get_arg(1)
extract($var);