fix attempt

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-11 22:57:20 +01:00
parent 071601ba6c
commit b7aa517e74

View file

@ -27,7 +27,7 @@ class ContainerDefinitionFetcher
$this->container = $container;
}
public function GetContainerById(string $id): ?Container
public function GetContainerById(string $id): Container
{
$containers = $this->FetchDefinition();
@ -36,8 +36,7 @@ class ContainerDefinitionFetcher
return $container;
}
}
return null;
throw new Exception("The provided id " . $id . " was not found in the container definition.");
}
/**