PHP 7+ is required
This commit is contained in:
@@ -29,7 +29,7 @@ See a working example at [roots-example-project.com](https://roots-example-proje
|
|||||||
Make sure all dependencies have been installed before moving on:
|
Make sure all dependencies have been installed before moving on:
|
||||||
|
|
||||||
* [WordPress](https://wordpress.org/) >= 4.7
|
* [WordPress](https://wordpress.org/) >= 4.7
|
||||||
* [PHP](http://php.net/manual/en/install.php) >= 5.6.4
|
* [PHP](http://php.net/manual/en/install.php) >= 7.0
|
||||||
* [Composer](https://getcomposer.org/download/)
|
* [Composer](https://getcomposer.org/download/)
|
||||||
* [Node.js](http://nodejs.org/) >= 6.9.x
|
* [Node.js](http://nodejs.org/) >= 6.9.x
|
||||||
* [Yarn](https://yarnpkg.com/en/docs/install)
|
* [Yarn](https://yarnpkg.com/en/docs/install)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6.4",
|
"php": ">=7",
|
||||||
"composer/installers": "~1.0",
|
"composer/installers": "~1.0",
|
||||||
"illuminate/support": "~5.4",
|
"illuminate/support": "~5.4",
|
||||||
"roots/sage-lib": "~9.0.0-beta.3",
|
"roots/sage-lib": "~9.0.0-beta.3",
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ $sage_error = function ($message, $subtitle = '', $title = '') {
|
|||||||
/**
|
/**
|
||||||
* Ensure compatible version of PHP is used
|
* Ensure compatible version of PHP is used
|
||||||
*/
|
*/
|
||||||
if (version_compare('5.6.4', phpversion(), '>=')) {
|
if (version_compare('7', phpversion(), '>=')) {
|
||||||
$sage_error(__('You must be using PHP 5.6.4 or greater.', 'sage'), __('Invalid PHP version', 'sage'));
|
$sage_error(__('You must be using PHP 7 or greater.', 'sage'), __('Invalid PHP version', 'sage'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user