Skip to content

Commit

Permalink
Add missing not condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefrosty committed Mar 18, 2022
1 parent 68e9b8b commit 34585ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Viewable.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trait Viewable
*/
public function getView(string $id): ?View
{
if (!method_exists($this, 'getContainer') || $this->getContainer() instanceof ContainerInterface) {
if (!method_exists($this, 'getContainer') || !$this->getContainer() instanceof ContainerInterface) {
throw new RuntimeException(
sprintf('%s must use %s', get_class($this), ContainerAwareTrait::class)
);
Expand Down

0 comments on commit 34585ee

Please sign in to comment.