rdbms: Pass required parameter
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 16:40:47 +0000 (17:40 +0100)
committerLegoktm <legoktm@member.fsf.org>
Sat, 1 Dec 2018 23:46:10 +0000 (23:46 +0000)
Found by PHPStan.

Change-Id: I8fbb64f7b5058b36381bccd5bc6a9d095b9ace15

includes/libs/rdbms/database/Database.php

index 2c40c72..63d648d 100644 (file)
@@ -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 = [];