From a3a268f7f69143d5c205d95dae87187ad26028e4 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 2 Aug 2017 11:06:58 -0500 Subject: [PATCH] PHP 7+ is required --- README.md | 2 +- composer.json | 2 +- resources/functions.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 53633a1..66a869b 100644 --- a/README.md +++ b/README.md @@ -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: * [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/) * [Node.js](http://nodejs.org/) >= 6.9.x * [Yarn](https://yarnpkg.com/en/docs/install) diff --git a/composer.json b/composer.json index ae6dca7..a9c9ad3 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ } }, "require": { - "php": ">=5.6.4", + "php": ">=7", "composer/installers": "~1.0", "illuminate/support": "~5.4", "roots/sage-lib": "~9.0.0-beta.3", diff --git a/resources/functions.php b/resources/functions.php index 88ca3f7..de55853 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -23,8 +23,8 @@ $sage_error = function ($message, $subtitle = '', $title = '') { /** * Ensure compatible version of PHP is used */ -if (version_compare('5.6.4', phpversion(), '>=')) { - $sage_error(__('You must be using PHP 5.6.4 or greater.', 'sage'), __('Invalid PHP version', 'sage')); +if (version_compare('7', phpversion(), '>=')) { + $sage_error(__('You must be using PHP 7 or greater.', 'sage'), __('Invalid PHP version', 'sage')); } /**