Skip to content

Commit 6987bda

Browse files
removed an else condition, fixed a parameter annotation and make little improvements
1 parent e5fe8c8 commit 6987bda

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Doctrine/DBAL/Query/Expression/CompositeExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct($type, array $parts = [])
7575
*/
7676
public function addMultiple(array $parts = [])
7777
{
78-
foreach ((array) $parts as $part) {
78+
foreach ($parts as $part) {
7979
$this->add($part);
8080
}
8181

lib/Doctrine/DBAL/Query/QueryBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ public function getMaxResults()
409409
* The available parts are: 'select', 'from', 'set', 'where',
410410
* 'groupBy', 'having' and 'orderBy'.
411411
*
412-
* @param string $sqlPartName
413-
* @param string $sqlPart
414-
* @param bool $append
412+
* @param string $sqlPartName
413+
* @param string|array $sqlPart
414+
* @param bool $append
415415
*
416416
* @return $this This QueryBuilder instance.
417417
*/
@@ -473,7 +473,7 @@ public function select($select = null)
473473

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

476-
return $this->add('select', $selects, false);
476+
return $this->add('select', $selects);
477477
}
478478

479479
/**

0 commit comments

Comments
 (0)