From ddc45d55d49252fb03bbb48c9db2d138bf8906e4 Mon Sep 17 00:00:00 2001 From: Bubba Date: Tue, 14 Feb 2017 16:40:07 -0500 Subject: [PATCH 1/3] Clean up some php 7+ syntax. --- src/Jobs/CreateTunnel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jobs/CreateTunnel.php b/src/Jobs/CreateTunnel.php index a396d10..d6aa6a9 100644 --- a/src/Jobs/CreateTunnel.php +++ b/src/Jobs/CreateTunnel.php @@ -73,7 +73,7 @@ protected function createTunnel() * Verifies whether the tunnel is active or not. * @return bool */ - protected function verifyTunnel(): bool + protected function verifyTunnel() { return $this->runCommand($this->ncCommand); } @@ -83,7 +83,7 @@ protected function verifyTunnel(): bool * @param $command * @return bool */ - protected function runCommand($command): bool + protected function runCommand($command) { $return_var = 1; exec($command, $this->output, $return_var); From e5d372a545a03d6046da7956bc7449e9b1cb8239 Mon Sep 17 00:00:00 2001 From: Bubba Date: Tue, 14 Feb 2017 16:49:57 -0500 Subject: [PATCH 2/3] Support 5.2+ --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e914ae3..d4b49fc 100644 --- a/composer.json +++ b/composer.json @@ -26,5 +26,7 @@ } ], "minimum-stability": "dev", - "require": {} + "require": { + "illuminate/support": "5.2.x|5.3.x|5.4.x" + } } From 2b59dbb7272d5051fb9c797c0f84fdb135d94c26 Mon Sep 17 00:00:00 2001 From: Bubba Date: Tue, 14 Feb 2017 16:52:35 -0500 Subject: [PATCH 3/3] Update Readme with requirements. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2678aa4..8eebbe6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,13 @@ We had a similar challenge, specifically accessing a MySQL database over an SSH So we wrote this package. We hope you enjoy it! +## Requirements +This package has been tested against Laravel/Lumen versions 5.2. 5.3, and 5.4. + +We do not support version <=5.1. + ## Installation + ``` composer require stechstudio/laravel-ssh-tunnel ```