Skip to content

Commit

Permalink
add defaul values to autowire
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 24, 2024
1 parent 4db5f96 commit 9231a51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Provider/RectorRecipeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Rector\RectorGenerator\Provider;

use PhpParser\Node\Expr\MethodCall;
use Rector\RectorGenerator\ValueObject\RectorRecipe;

final class RectorRecipeProvider
Expand All @@ -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);
}
Expand Down

0 comments on commit 9231a51

Please sign in to comment.