Merge "Fix declaration of ForeignDBFile::delete()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 8 May 2014 20:03:10 +0000 (20:03 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 8 May 2014 20:03:10 +0000 (20:03 +0000)
includes/filerepo/file/File.php
includes/filerepo/file/ForeignDBFile.php

index a9af1e8..5895dda 100644 (file)
@@ -1652,11 +1652,12 @@ abstract class File {
         *
         * @param string $reason
         * @param bool $suppress Hide content from sysops?
+        * @param User|null $user
         * @return bool Boolean on success, false on some kind of failure
         * STUB
         * Overridden by LocalFile
         */
-       function delete( $reason, $suppress = false ) {
+       function delete( $reason, $suppress = false, $user = null ) {
                $this->readOnlyError();
        }
 
index c5ff4a7..561ead7 100644 (file)
@@ -94,10 +94,11 @@ class ForeignDBFile extends LocalFile {
        /**
         * @param string $reason
         * @param bool $suppress
+        * @param User|null $user
         * @return FileRepoStatus
         * @throws MWException
         */
-       function delete( $reason, $suppress = false ) {
+       function delete( $reason, $suppress = false, $user = null ) {
                $this->readOnlyError();
        }