Fix and improve PHPDoc type hints in FileBackend and FileRepo
[lhc/web/wiklou.git] / includes / filebackend / filejournal / DBFileJournal.php
index 42b36ff..3dc9f18 100644 (file)
@@ -124,9 +124,9 @@ class DBFileJournal extends FileJournal {
 
        /**
         * @see FileJournal::doGetChangeEntries()
-        * @param int $start
+        * @param int|null $start
         * @param int $limit
-        * @return array
+        * @return array[]
         */
        protected function doGetChangeEntries( $start, $limit ) {
                $dbw = $this->getMasterDB();
@@ -183,7 +183,7 @@ class DBFileJournal extends FileJournal {
        protected function getMasterDB() {
                if ( !$this->dbw ) {
                        // Get a separate connection in autocommit mode
-                       $lb =  MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->newMainLB();
+                       $lb = MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->newMainLB();
                        $this->dbw = $lb->getConnection( DB_MASTER, [], $this->wiki );
                        $this->dbw->clearFlag( DBO_TRX );
                }