Skip to content

Commit f9a5fe0

Browse files
authored
Merge branch 'master' into patch-2
2 parents 679169b + 9696cd8 commit f9a5fe0

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/guides/v2.3/coding-standards/docblock-standard-general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ For example, padding for visual alignment can be done in two ways:
797797
/**
798798
* ...
799799
*
800-
* @param string $parentId
801-
* @param string $childId
800+
* @param string $parentId
801+
* @param string $childId
802802
* @param int|null $position
803803
* @return int
804804
* @see _insertChild() for position explanation

src/guides/v2.3/extension-dev-guide/cli-cmds/cli-howto.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,14 @@ Following is a summary of the process:
9292
*/
9393
protected function configure()
9494
{
95-
$options = [
96-
new InputOption(
97-
self::NAME,
98-
null,
99-
InputOption::VALUE_REQUIRED,
100-
'Name'
101-
)
102-
];
10395
$this->setName('my:first:command');
10496
$this->setDescription('This is my first console command.');
105-
$this->setDefinition($options);
97+
$this->addOption(
98+
self::NAME,
99+
null,
100+
InputOption::VALUE_REQUIRED,
101+
'Name'
102+
);
106103

107104
parent::configure();
108105
}

0 commit comments

Comments
 (0)