Skip to content

Commit

Permalink
Merge pull request #12540 from vlakoff/db-query
Browse files Browse the repository at this point in the history
[5.1] It is redundant to pass grammar and processor to Builder constructor
  • Loading branch information
taylorotwell committed Feb 29, 2016
2 parents e2cdf6a + ec28b46 commit 0b6d3c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ class Builder
* @return void
*/
public function __construct(ConnectionInterface $connection,
Grammar $grammar,
Processor $processor)
Grammar $grammar = null,
Processor $processor = null)
{
$this->grammar = $grammar;
$this->processor = $processor;
$this->connection = $connection;
$this->grammar = $grammar ?: $connection->getQueryGrammar();
$this->processor = $processor ?: $connection->getPostProcessor();
}

/**
Expand Down

0 comments on commit 0b6d3c3

Please sign in to comment.