Skip to content

Commit

Permalink
Merge pull request #3008 from AlessandroMinoccheri/improve_code_insid…
Browse files Browse the repository at this point in the history
…e_query_directory

removed an else condition, fixed a parameter annotation and make little improvements
  • Loading branch information
Ocramius committed Feb 2, 2018
2 parents e5fe8c8 + 018e0d2 commit 4ea3b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Query/Expression/CompositeExpression.php
Expand Up @@ -75,7 +75,7 @@ public function __construct($type, array $parts = [])
*/
public function addMultiple(array $parts = [])
{
foreach ((array) $parts as $part) {
foreach ($parts as $part) {
$this->add($part);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Query/QueryBuilder.php
Expand Up @@ -473,7 +473,7 @@ public function select($select = null)

$selects = is_array($select) ? $select : func_get_args();

return $this->add('select', $selects, false);
return $this->add('select', $selects);
}

/**
Expand Down

0 comments on commit 4ea3b4d

Please sign in to comment.