Skip to content

Commit

Permalink
Fix #145: Add return type to `Yiisoft\Yii\Console\CommandLoader::get(…
Browse files Browse the repository at this point in the history
…)` method
  • Loading branch information
devanych committed Feb 10, 2022
1 parent 074bb5d commit 892e179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
## 1.0.1 under development

- Enh #141: Add support for version `^6.0` for `symfony/console` package (devanych)
- Bug #145: Add return type to `Yiisoft\Yii\Console\CommandLoader::get()` method (devanych)

## 1.0.0 November 01, 2021

Expand Down
2 changes: 1 addition & 1 deletion src/CommandLoader.php
Expand Up @@ -44,7 +44,7 @@ public function __construct(ContainerInterface $container, array $commandMap)
$this->setCommandMap($commandMap);
}

public function get(string $name)
public function get(string $name): Command
{
if (!$this->has($name)) {
throw new CommandNotFoundException(sprintf('Command "%s" does not exist.', $name));
Expand Down

0 comments on commit 892e179

Please sign in to comment.