Skip to content

Commit

Permalink
Added error message on unsupported PHP version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Jan 30, 2019
1 parent 657fccb commit e5079ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions laps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit e5079ce

Please sign in to comment.