Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request doctrine#790 from javer/hhvm-func_get_args
Browse files Browse the repository at this point in the history
HHVM compatibility: func_get_args
  • Loading branch information
beberlei committed Sep 15, 2013
2 parents c72698a + 64a0161 commit fe78977
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Doctrine/ORM/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ public function where($predicates)
*/
public function andWhere($where)
{
$where = $this->getDQLPart('where');
$args = func_get_args();
$where = $this->getDQLPart('where');

if ($where instanceof Expr\Andx) {
$where->addMultiple($args);
Expand Down Expand Up @@ -927,8 +927,8 @@ public function andWhere($where)
*/
public function orWhere($where)
{
$where = $this->getDqlPart('where');
$args = func_get_args();
$where = $this->getDqlPart('where');

if ($where instanceof Expr\Orx) {
$where->addMultiple($args);
Expand Down Expand Up @@ -1007,8 +1007,8 @@ public function having($having)
*/
public function andHaving($having)
{
$having = $this->getDqlPart('having');
$args = func_get_args();
$having = $this->getDqlPart('having');

if ($having instanceof Expr\Andx) {
$having->addMultiple($args);
Expand All @@ -1030,8 +1030,8 @@ public function andHaving($having)
*/
public function orHaving($having)
{
$having = $this->getDqlPart('having');
$args = func_get_args();
$having = $this->getDqlPart('having');

if ($having instanceof Expr\Orx) {
$having->addMultiple($args);
Expand Down

0 comments on commit fe78977

Please sign in to comment.