Skip to content

Commit

Permalink
Fixed php53 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Aug 19, 2016
1 parent ab620fe commit 28122b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Query/Sql/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function orderBy($columns, $direction = 'asc')
}
elseif ($columns instanceof Expression)
{
$this->orders[] = [$columns, $direction]; return $this;
$this->orders[] = array($columns, $direction); return $this;
}

foreach ($columns as $key => $column)
Expand Down
2 changes: 1 addition & 1 deletion tests/Query/Sql/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function testOrderByRaw()
$raw = new Expression('language <> de');

// simple
$this->assertAttributes($this->createQuery()->orderBy($raw), array('orders' => array([$raw, 'asc'])));
$this->assertAttributes($this->createQuery()->orderBy($raw), array('orders' => array(array($raw, 'asc'))));
}

/**
Expand Down

0 comments on commit 28122b8

Please sign in to comment.