actions icon indicating copy to clipboard operation
actions copied to clipboard

rector config adjustments

Open arogachev opened this issue 3 years ago • 1 comments

  • 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 use statement:
    • After replacing string containing class name with ::class.
    • After adding interface to "implements".
  • Remove psalm tags when they add nothing new, for example @psalm-return ContainerInterface with ContainerInterface as return type hint.
  • Constructor property promotion - constructor's argument type hint is deleted when does not match property's type hint.

arogachev avatar Sep 28 '22 08:09 arogachev

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);

xepozz avatar Oct 28 '22 19:10 xepozz