We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 148478c commit 307a148Copy full SHA for 307a148
1 file changed
src/ContainerCommandResolver.php
@@ -22,7 +22,7 @@ public function createCommand($command): callable
22
if (!is_string($command)) {
23
throw new \InvalidArgumentException('Command must be string to be resolved from container');
24
}
25
- if ($this->container->has($command)) {
+ if (!$this->container->has($command)) {
26
throw new \RuntimeException('Can\'t find command in container');
27
28
0 commit comments