From 6ac0e9bdd3f2756ce031834f1c5e64fa114d9719 Mon Sep 17 00:00:00 2001 From: Raymon de Looff Date: Sat, 28 Jan 2017 11:47:34 +0100 Subject: [PATCH] =?UTF-8?q?Default=20to=20null=20if=20amount=20isn?= =?UTF-8?q?=E2=80=99t=20set=20in=20helper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Illuminate/Foundation/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index bee89924ffed..11a1799382a4 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -494,7 +494,7 @@ function factory() $arguments = func_get_args(); if (isset($arguments[1]) && is_string($arguments[1])) { - return $factory->of($arguments[0], $arguments[1])->times(isset($arguments[2]) ? $arguments[2] : 1); + return $factory->of($arguments[0], $arguments[1])->times(isset($arguments[2]) ? $arguments[2] : null); } elseif (isset($arguments[1])) { return $factory->of($arguments[0])->times($arguments[1]); } else {