Skip to content

Commit 995b13a

Browse files
authored
Update readme.md
1 parent eefea7e commit 995b13a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $generator->createPresenter(
2323
### Component
2424

2525
```php
26-
$options = getopt(null, ['appNamespace:', 'appDir:', 'name:', 'module:', 'entityName:', 'withTemplateName:']);
26+
$options = getopt(null, ['appNamespace:', 'appDir:', 'name:', 'module:', 'type:', 'entityName:', 'withTemplateName:']);
2727

2828
$generator = new Stepapo\Generator\Generator(
2929
appNamespace: $options['appNamespace'] ?? 'App',
@@ -35,7 +35,7 @@ $generator->createComponent(
3535
module: $options['module'] ?? null,
3636
entityName: $options['entityName'] ?? null,
3737
withTemplateName: $options['withTemplateName'] ?? false,
38-
type: $type = $options['type'] ?? null,
38+
type: $options['type'] ?? null,
3939
);
4040
```
4141

0 commit comments

Comments
 (0)