From: Sarah Hoffmann Date: Sun, 11 Jul 2021 18:10:13 +0000 (+0200) Subject: do not intermix params with and without default X-Git-Tag: v4.0.0~52^2~11 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/bffbe68ec3ad93aa6188083441677ab0fdd54659 do not intermix params with and without default --- diff --git a/lib-php/DatabaseError.php b/lib-php/DatabaseError.php index 3a53bc8f..ec428de1 100644 --- a/lib-php/DatabaseError.php +++ b/lib-php/DatabaseError.php @@ -5,7 +5,7 @@ namespace Nominatim; class DatabaseError extends \Exception { - public function __construct($message, $code = 500, Exception $previous = null, $oPDOErr, $sSql = null) + public function __construct($message, $code, $previous, $oPDOErr, $sSql = null) { parent::__construct($message, $code, $previous); // https://secure.php.net/manual/en/class.pdoexception.php