X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Fdatabase%2FDatabase.php;h=7865db4a587897bd53f625c38d0ee6fade6146c7;hb=d3ab48b67310aca7589e75f18e492aca2ac66058;hp=2c40c72bc16769f1bc8f4a9e86c36a2e6dbca4a3;hpb=ee975d6d1a376bb08d2b1731f97abc96f6e26b1d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index 2c40c72bc1..7865db4a58 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -97,9 +97,9 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware protected $connLogger; /** @var LoggerInterface */ protected $queryLogger; - /** @var callback Error logging callback */ + /** @var callable Error logging callback */ protected $errorLogger; - /** @var callback Deprecation logging callback */ + /** @var callable Deprecation logging callback */ protected $deprecationLogger; /** @var resource|null Database connection */ @@ -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 = [];