Skip to content

Commit 307a148

Browse files
committed
Fix inverted if statement
1 parent 148478c commit 307a148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ContainerCommandResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function createCommand($command): callable
2222
if (!is_string($command)) {
2323
throw new \InvalidArgumentException('Command must be string to be resolved from container');
2424
}
25-
if ($this->container->has($command)) {
25+
if (!$this->container->has($command)) {
2626
throw new \RuntimeException('Can\'t find command in container');
2727
}
2828

0 commit comments

Comments
 (0)