X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=7879448bb663be93c727d51912ff971849a03214;hb=21a36e80464f364d894eb49b3073069fc87f97b1;hp=29c017cba8085496d41762187ba9eb480ebc5a27;hpb=4d609f015dd64528e772bbaa088d378aa26334eb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index 29c017cba8..7879448bb6 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -21,6 +21,7 @@ * @ingroup FileRepo */ +use Wikimedia\Rdbms\Database; use Wikimedia\Rdbms\IDatabase; /** @@ -57,9 +58,9 @@ class ForeignDBRepo extends LocalRepo { protected $dbConn; /** @var callable */ - protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ]; + protected $fileFactory = [ ForeignDBFile::class, 'newFromTitle' ]; /** @var callable */ - protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ]; + protected $fileFromRowFactory = [ ForeignDBFile::class, 'newFromRow' ]; /** * @param array|null $info