X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=7879448bb663be93c727d51912ff971849a03214;hb=9ba178b8aa3aa93a5bba1d09cfa85527e8edfa8f;hp=29c017cba8085496d41762187ba9eb480ebc5a27;hpb=132c1ad73ffda918bbd1e011487765b80ddd2c9c;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