From 9e8a747233f4582dbfcc34cabeec28f4f23ecfc2 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2018 17:40:47 +0100 Subject: [PATCH] rdbms: Pass required parameter Found by PHPStan. Change-Id: I8fbb64f7b5058b36381bccd5bc6a9d095b9ace15 --- includes/libs/rdbms/database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index 2c40c72bc1..63d648da7e 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -3742,7 +3742,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware } } if ( $pos < 0 ) { - throw new DBUnexpectedError( "Atomic section not found (for $fname)" ); + throw new DBUnexpectedError( $this, "Atomic section not found (for $fname)" ); } // Remove all descendant sections and re-index the array $excisedIds = []; -- 2.20.1