Skip to content

Commit

Permalink
Merge pull request #279 from jecksolovyev/master
Browse files Browse the repository at this point in the history
PHP >= 7.2 generates warning "count(): Parameter must be an array or an object that implements Countable"
  • Loading branch information
FlipEverything committed Oct 9, 2018
2 parents 696123c + 1ea0499 commit e4ada95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static function parseDsn($dsn)
$parsed['dbsyntax'] = $str;
}

if ( !count( $dsn ) ) {
if ( empty( $dsn ) ) {
return $parsed;
}

Expand Down

0 comments on commit e4ada95

Please sign in to comment.