diff --git a/docs/en/development.rst b/docs/en/development.rst index 735c4183..edaa572c 100644 --- a/docs/en/development.rst +++ b/docs/en/development.rst @@ -145,7 +145,7 @@ looks like this:: * * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io - * @return null|void|int The exit code or null for success + * @return int|null|void The exit code or null for success */ public function execute(Arguments $args, ConsoleIo $io) { @@ -188,7 +188,7 @@ And the resultant baked class (**src/Command/FooCommand.php**) looks like this:: * * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io - * @return null|void|int The exit code or null for success + * @return int|null|void The exit code or null for success */ public function execute(Arguments $args, ConsoleIo $io) { diff --git a/docs/fr/development.rst b/docs/fr/development.rst index b4f72c38..f9a24c12 100644 --- a/docs/fr/development.rst +++ b/docs/fr/development.rst @@ -153,7 +153,7 @@ ressemble à ceci:: * * @param \Cake\Console\Arguments $args Les arguments de la commande. * @param \Cake\Console\ConsoleIo $io La console il - * @return null|void|int Le code de sortie ou null pour un succès + * @return int|null|void Le code de sortie ou null pour un succès */ public function execute(Arguments $args, ConsoleIo $io) { @@ -197,7 +197,7 @@ ressemble à ceci:: * * @param \Cake\Console\Arguments $args Les arguments de la commande. * @param \Cake\Console\ConsoleIo $io La console io - * @return null|void|int Le code de sortie ou null pour un succès + * @return int|null|void Le code de sortie ou null pour un succès */ public function execute(Arguments $args, ConsoleIo $io) { diff --git a/templates/bake/Command/command.twig b/templates/bake/Command/command.twig index ab52d71d..fe126f6c 100644 --- a/templates/bake/Command/command.twig +++ b/templates/bake/Command/command.twig @@ -47,7 +47,7 @@ class {{ name }}Command extends Command * * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io - * @return null|void|int The exit code or null for success + * @return int|null|void The exit code or null for success */ public function execute(Arguments $args, ConsoleIo $io) { diff --git a/tests/comparisons/Command/testBakePlugin.php b/tests/comparisons/Command/testBakePlugin.php index 35c1b087..c762139d 100644 --- a/tests/comparisons/Command/testBakePlugin.php +++ b/tests/comparisons/Command/testBakePlugin.php @@ -32,7 +32,7 @@ public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar * * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io - * @return null|void|int The exit code or null for success + * @return int|null|void The exit code or null for success */ public function execute(Arguments $args, ConsoleIo $io) {