parameters(); $parameters->set(Option::RECTOR_RECIPE, [ RecipeOption::PACKAGE => 'Nette', RecipeOption::NAME => 'TranslateClassMethodToVariadicsRector', RecipeOption::NODE_TYPES => [ MethodCall::class, ], RecipeOption::DESCRIPTION => 'Change translate() method call 2nd arg to variadic', RecipeOption::CODE_BEFORE => <<<'CODE_SAMPLE' <<<'CODE_SAMPLE' [ 'https://github.com/nette/utils/pull/178' ], // e.g. symfony30, target set to add this Rule to; keep null if part of core RecipeOption::SET => null, // OPTIONAL: only when configured RecipeOption::RULE_CONFIGURATION => null, // OPTIONAL: extra file RecipeOption::EXTRA_FILE_NAME => null, RecipeOption::EXTRA_FILE_CONTENT => null, ]); };