Added error message on unsupported PHP version.

This commit is contained in:
Andrey Savchenko committed 2019-01-30 19:06:40 +02:00
1 parent 657fccb2de
commit e5079ce186
2 files changed
+5

No files matched your search

+1
View File
@@ -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
+4
View File
@@ -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();