Skip to content

Commit

Permalink
[5.2] Added missing Symfony UploadedFile class test property (#13656)
Browse files Browse the repository at this point in the history
* 'Added missing Symfony UploadedFile class test property'

* 'missing default value'
  • Loading branch information
kboduch authored and taylorotwell committed May 23, 2016
1 parent 1576199 commit 4d4468e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Http/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,18 @@ public function hashName($path = null)
* Create a new file instance from a base instance.
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
* @param bool $test
* @return static
*/
public static function createFromBase(SymfonyUploadedFile $file)
public static function createFromBase(SymfonyUploadedFile $file, $test = false)
{
return $file instanceof static ? $file : new static(
$file->getPathname(),
$file->getClientOriginalName(),
$file->getClientMimeType(),
$file->getClientSize(),
$file->getError()
$file->getError(),
$test
);
}
}

0 comments on commit 4d4468e

Please sign in to comment.