From bffbe68ec3ad93aa6188083441677ab0fdd54659 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 11 Jul 2021 20:10:13 +0200 Subject: [PATCH] do not intermix params with and without default --- lib-php/DatabaseError.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2