Skip to content

Commit

Permalink
Fix check PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
puleeno committed Jul 11, 2020
1 parent e49226f commit c74e2d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ function load_base_guzzle()

function load_guzzle_version()
{
$version_autoload = sprintf('%s/v%s/autoload.php', dirname(__FILE__), PHP_VESION_ID >= 70205 ? '7.0' : '6.5');
$load_version = '6.5';
if (version_compare(phpversion(), '7.2.5', '>=')) {
$load_version = '7.0';
}
$version_autoload = sprintf('%s/v%s/autoload.php', dirname(__FILE__), $load_version);
if (file_exists($version_autoload)) {
require_once $version_autoload;
}
Expand Down

0 comments on commit c74e2d7

Please sign in to comment.