Fixed E_STRICT warning:
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 14 Mar 2013 23:46:30 +0000 (16:46 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Mar 2013 05:54:08 +0000 (05:54 +0000)
Strict Standards: Declaration of UploadFromChunks::stashFile() should be
compatible with UploadBase::stashFile(User $user = NULL)

Change-Id: If14d7aeacb23df16bff94c5989cde4ee31c1d105

includes/upload/UploadFromChunks.php

index fb0c786..e784e51 100644 (file)
@@ -66,7 +66,7 @@ class UploadFromChunks extends UploadFromFile {
         *
         * @return UploadStashFile stashed file
         */
-       public function stashFile() {
+       public function stashFile( User $user = null ) {
                // Stash file is the called on creating a new chunk session:
                $this->mChunkIndex = 0;
                $this->mOffset = 0;