From 4d4468e52969c5007fd52da8620749c2ef40b1f9 Mon Sep 17 00:00:00 2001 From: kboduch Date: Mon, 23 May 2016 16:30:21 +0200 Subject: [PATCH] [5.2] Added missing Symfony UploadedFile class test property (#13656) * 'Added missing Symfony UploadedFile class test property' * 'missing default value' --- src/Illuminate/Http/UploadedFile.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Http/UploadedFile.php b/src/Illuminate/Http/UploadedFile.php index b805f8228cef..4df1ff83a9bb 100644 --- a/src/Illuminate/Http/UploadedFile.php +++ b/src/Illuminate/Http/UploadedFile.php @@ -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 ); } }