From: Jakub Vrana Date: Sat, 1 Dec 2018 16:40:47 +0000 (+0100) Subject: rdbms: Pass required parameter X-Git-Tag: 1.34.0-rc.0~3383^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=9e8a747233f4582dbfcc34cabeec28f4f23ecfc2;p=lhc%2Fweb%2Fwiklou.git rdbms: Pass required parameter Found by PHPStan. Change-Id: I8fbb64f7b5058b36381bccd5bc6a9d095b9ace15 --- 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 = [];