symfony/symfony — pull request #11873 by thierrymarianne (2014-09-07 10:12:18+00:00)
Title: [Console] added type hinting for array to setAliases method

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~

This patch would help having improved feedback when passing an invalid alias to setAliases method:

`Argument 1 passed to Symfony\Component\Console\Command\Command::setAliases() must be of the type array, string given,` [...]

instead of

`Invalid argument supplied for foreach()`