diff --git a/src/Handler.php b/src/Handler.php
index ba97061ef6dc97d972fb15158b054cf4b558c83b..1b6b9480301b0053785d6ab4f6521f82a0c03527 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -195,10 +195,10 @@ class Handler extends BaseHandler {
    * @param null $key
    *   Optional name of an option to be received instead of the full set of options.
    *
-   * @return array
+   * @return array|string
    *   The options.
    */
-  public function getOptions($key = NULL): array {
+  public function getOptions($key = NULL) {
     if ($this->options === NULL) {
       $env = new Dotenv('docker4drupal', $this->io);
       $projectname = getenv('COMPOSE_PROJECT_NAME');