[QueryBuilder] Remove unused method parameters that are shadowed by local variables
PHP5 treats the left part of such assignment as an independent local variable, while HHVM treats it as a reference to the method parameter. This leads to the value of the parameter being changed, which, in turn, causes func_get_args() to return not what is expected. This commit is a part of the effort to make Symfony run flawlessly on HHVM. This issue causes a bunch of Symfony tests to fail on HHVM.
This commit is contained in:
parent
f5ecabbc21
commit
b33c9befb7
1 changed files with 2 additions and 2 deletions
|
@ -1026,7 +1026,7 @@ class QueryBuilder
|
|||
*
|
||||
* @see where()
|
||||
*/
|
||||
public function andWhere($where)
|
||||
public function andWhere()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$where = $this->getDQLPart('where');
|
||||
|
@ -1059,7 +1059,7 @@ class QueryBuilder
|
|||
*
|
||||
* @see where()
|
||||
*/
|
||||
public function orWhere($where)
|
||||
public function orWhere()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$where = $this->getDqlPart('where');
|
||||
|
|
Loading…
Add table
Reference in a new issue