Skip to content

Commit

Permalink
Merge pull request #68 from mrrobot47/add/php-7.0
Browse files Browse the repository at this point in the history
Add support for php 7.0
  • Loading branch information
mrrobot47 committed Apr 9, 2019
2 parents d862e27 + cf89078 commit 320c764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function __construct() {
* default: latest
* options:
* - 5.6
* - 7.0
* - 7.2
* - 7.3
* - latest
Expand Down Expand Up @@ -200,7 +201,7 @@ public function create( $args, $assoc_args ) {
}
}

$supported_php_versions = [ 5.6, 7.2, 7.3, 'latest' ];
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 'latest' ];
if ( ! in_array( $this->site_data['php_version'], $supported_php_versions ) ) {
$old_version = $this->site_data['php_version'];
$floor = (int) floor( $this->site_data['php_version'] );
Expand Down

0 comments on commit 320c764

Please sign in to comment.