diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-17 18:39:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 18:39:56 +0100 |
commit | 796c4c57d085ae4589b53dfe8369ae9ba30ffdaf (patch) | |
tree | 676b02604ae6f358ddb90c59c549465f6e9d6214 /application/ApplicationUtils.php | |
parent | ef028857531a6abe2d7180538b8510502ee2a467 (diff) | |
parent | def39d0dd7a81a4af9ad68b62c9e9823fbc2b38e (diff) | |
download | Shaarli-796c4c57d085ae4589b53dfe8369ae9ba30ffdaf.tar.gz Shaarli-796c4c57d085ae4589b53dfe8369ae9ba30ffdaf.tar.zst Shaarli-796c4c57d085ae4589b53dfe8369ae9ba30ffdaf.zip |
Run Unit Tests against PHP 7.4 (#1353)
Run Unit Tests against PHP 7.4
Diffstat (limited to 'application/ApplicationUtils.php')
-rw-r--r-- | application/ApplicationUtils.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index 7fe3cb32..3aa21829 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php | |||
@@ -150,6 +150,8 @@ class ApplicationUtils | |||
150 | * @param string $minVersion minimum PHP required version | 150 | * @param string $minVersion minimum PHP required version |
151 | * @param string $curVersion current PHP version (use PHP_VERSION) | 151 | * @param string $curVersion current PHP version (use PHP_VERSION) |
152 | * | 152 | * |
153 | * @return bool true on success | ||
154 | * | ||
153 | * @throws Exception the PHP version is not supported | 155 | * @throws Exception the PHP version is not supported |
154 | */ | 156 | */ |
155 | public static function checkPHPVersion($minVersion, $curVersion) | 157 | public static function checkPHPVersion($minVersion, $curVersion) |
@@ -163,6 +165,7 @@ class ApplicationUtils | |||
163 | ); | 165 | ); |
164 | throw new Exception(sprintf($msg, $minVersion)); | 166 | throw new Exception(sprintf($msg, $minVersion)); |
165 | } | 167 | } |
168 | return true; | ||
166 | } | 169 | } |
167 | 170 | ||
168 | /** | 171 | /** |