Skip to content

Commit

Permalink
Modernize the main version check a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo committed Jan 7, 2022
1 parent 6fd205c commit 2303dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__/__.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* bottomline is licensed under the MIT license *
* Copyright (c) 2014 Maciej A. Czyzewski *
\*****************************************************************/
if (\version_compare(PHP_VERSION, '5.5.0', '<')) {
throw new \Exception('Your PHP installation is too old. Bottomline requires at least PHP 5.5.0', 1);
if (PHP_VERSION_ID < 50500) {
throw new \RuntimeException('Your PHP installation is too old. Bottomline requires at least PHP 5.5.0', 1);
}
// Do NOT modify this doc block, it is automatically generated. If you would
// like update the documentation, please update it in the respective function
Expand Down

0 comments on commit 2303dfc

Please sign in to comment.