Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a50ae2c

Browse files
committed
Merge pull request #1142 from TwoWholeWorms/2.4
func_get_args() call order fix for HHVM bug
2 parents 406e177 + dbbe7a4 commit a50ae2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Doctrine/ORM/QueryBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ public function where($predicates)
894894
*/
895895
public function andWhere($where)
896896
{
897-
$where = $this->getDQLPart('where');
898897
$args = func_get_args();
898+
$where = $this->getDQLPart('where');
899899

900900
if ($where instanceof Expr\Andx) {
901901
$where->addMultiple($args);
@@ -927,8 +927,8 @@ public function andWhere($where)
927927
*/
928928
public function orWhere($where)
929929
{
930-
$where = $this->getDqlPart('where');
931930
$args = func_get_args();
931+
$where = $this->getDqlPart('where');
932932

933933
if ($where instanceof Expr\Orx) {
934934
$where->addMultiple($args);
@@ -1007,8 +1007,8 @@ public function having($having)
10071007
*/
10081008
public function andHaving($having)
10091009
{
1010-
$having = $this->getDqlPart('having');
10111010
$args = func_get_args();
1011+
$having = $this->getDqlPart('having');
10121012

10131013
if ($having instanceof Expr\Andx) {
10141014
$having->addMultiple($args);
@@ -1030,8 +1030,8 @@ public function andHaving($having)
10301030
*/
10311031
public function orHaving($having)
10321032
{
1033-
$having = $this->getDqlPart('having');
10341033
$args = func_get_args();
1034+
$having = $this->getDqlPart('having');
10351035

10361036
if ($having instanceof Expr\Orx) {
10371037
$having->addMultiple($args);

0 commit comments

Comments
 (0)