Closed reecube closed 6 years ago
@reecube please add this polyfill as well:
// PHP_VERSION_ID is available as of PHP 5.2.7, if our
// version is lower than that, then emulate it
if (!defined('PHP_VERSION_ID')) {
$version = explode('.', PHP_VERSION);
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
Thank you for the note. I just added the polyfill.
Awesome, thanks!
On my computer (Windows and PHP 7.2.3 on XAMPP) the installation failed because of
PHP version 7.0 or greater required
.I fixed this by changing
version_compare(PHP_VERSION , "7.0", ">=")
toPHP_VERSION_ID >= 70000
, which is also recommended by PHPStorm IDE.