From e5079ce18616a509143b290004142628cfaf9e77 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Wed, 30 Jan 2019 19:06:40 +0200 Subject: [PATCH] Added error message on unsupported PHP version. --- CHANGELOG.md | 1 + laps.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8286735..115dad3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Beaver Builder events +- error message on unsupported PHP version ### Fixed - handling of reoccurring hook events diff --git a/laps.php b/laps.php index bd6d426..41a9113 100644 --- a/laps.php +++ b/laps.php @@ -20,6 +20,10 @@ trigger_error( 'Laps not fully installed! Please install with Composer or download full release archive.', E_USER_ERROR ); } +if ( PHP_VERSION_ID < 70103 ) { + trigger_error( 'Laps requires PHP version >=7.1.3.', E_USER_ERROR ); +} + $laps = new \Rarst\Laps\Plugin(); $laps->run();