From 9231a516548438691e0d07ded47714e48f3d3a80 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 25 Jan 2024 00:21:02 +0100 Subject: [PATCH] add defaul values to autowire --- src/Provider/RectorRecipeProvider.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Provider/RectorRecipeProvider.php b/src/Provider/RectorRecipeProvider.php index fbbf4ae..8310adf 100644 --- a/src/Provider/RectorRecipeProvider.php +++ b/src/Provider/RectorRecipeProvider.php @@ -4,6 +4,7 @@ namespace Rector\RectorGenerator\Provider; +use PhpParser\Node\Expr\MethodCall; use Rector\RectorGenerator\ValueObject\RectorRecipe; final class RectorRecipeProvider @@ -15,12 +16,12 @@ final class RectorRecipeProvider * @param string[] $nodeTypes */ public function __construct( - string $package, - string $name, - array $nodeTypes, - string $description, - string $codeBefore, - string $codeAfter, + string $package = 'Utils', + string $name = 'SomeRector', + array $nodeTypes = [MethodCall::class], + string $description = 'Some description', + string $codeBefore = 'Some code before', + string $codeAfter = 'Some code after', ) { $this->rectorRecipe = new RectorRecipe($package, $name, $nodeTypes, $description, $codeBefore, $codeAfter); }