Skip to content

Commit

Permalink
Make EE compatible with PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kirtangajjar committed Jun 17, 2021
1 parent 721ed0b commit 41cb2cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"config": {
"platform": {
"php": "7.1"
"php": "7.3"
},
"sort-packages": true
},
Expand All @@ -39,7 +39,7 @@
"easyengine/site-type-php": "v1.4.0",
"easyengine/site-type-wp": "v1.4.0",
"monolog/monolog": "1.24.0",
"mustache/mustache": "2.12.0",
"mustache/mustache": "2.13.0",
"rmccue/requests": "1.8.0",
"symfony/config": "3.4.18",
"symfony/console": "3.4.35",
Expand Down
4 changes: 2 additions & 2 deletions php/EE/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,15 +538,15 @@ public function in_color() {
}

public function init_colorization() {
if ( 'auto' === $this->config['color'] ) {
if ( ! isset( $this->config['color'] ) || 'auto' === $this->config['color'] ) {
$this->colorize = ( ! \EE\Utils\isPiped() && ! \EE\Utils\is_windows() );
} else {
$this->colorize = $this->config['color'];
}
}

public function init_logger() {
if ( $this->config['quiet'] ) {
if ( isset( $this->config['quiet'] ) && $this->config['quiet'] ) {
$logger = new \EE\Loggers\Quiet;
} else {
$logger = new \EE\Loggers\Regular( $this->in_color() );
Expand Down
2 changes: 1 addition & 1 deletion php/class-ee-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function update( $values ) {
$set_bindings = array_values( $values );
$where_bindings = $this->where['bindings'];

$set_clause = implode( $set_keys, ' = ?, ' ) . ' = ?';
$set_clause = implode( ' = ?, ', $set_keys) . ' = ?';

$query = "UPDATE $this->tables SET $set_clause{$this->where['query_string']}";
$pdo_statement = self::$pdo->query( $query );
Expand Down

0 comments on commit 41cb2cc

Please sign in to comment.