Added error message on unsupported PHP version.
This commit is contained in:
1 parent
657fccb2de
commit
e5079ce186
2 files changed
+5
No files matched your search
@@ -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
|
||||
|
||||
@@ -20,6 +20,10 @@ if ( ! class_exists( '\Rarst\Laps\Plugin' ) ) {
|
||||
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();
|
||||
Reference in new issue
Block a user