From 62d22d5f5dfbf88fd7983639de25766360f0d347 Mon Sep 17 00:00:00 2001 From: Simon Svensson Date: Sat, 9 Dec 2017 05:52:30 +0100 Subject: [PATCH] Revert "Operator optional (#22361)" This reverts commit 727b8f93703abb2e1ee2443724d233c4e3b14a4f. --- src/Illuminate/Database/Query/Builder.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 9b2ccbba7f3a..00fc764236e9 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -993,16 +993,12 @@ public function orWhereDate($column, $operator, $value) * * @param string $column * @param string $operator - * @param string $value + * @param int $value * @param string $boolean * @return \Illuminate\Database\Query\Builder|static */ - public function whereTime($column, $operator, $value = null, $boolean = 'and') + public function whereTime($column, $operator, $value, $boolean = 'and') { - list($value, $operator) = $this->prepareValueAndOperator( - $value, $operator, func_num_args() == 2 - ); - return $this->addDateBasedWhere('Time', $column, $operator, $value, $boolean); }