Skip to content

Commit

Permalink
Merge pull request #133 from auraphp/3.x-subselect-interface
Browse files Browse the repository at this point in the history
Remove SubSelect interface, typehint on SelectInterface instead
  • Loading branch information
Paul M. Jones authored Mar 22, 2017
2 parents 8ab9f25 + 91a734d commit 3be4c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
namespace Aura\SqlQuery;

use Aura\SqlQuery\Common\SubselectInterface;
use Aura\SqlQuery\Common\SelectInterface;
use Aura\SqlQuery\Common\QuoterInterface;

/**
Expand Down Expand Up @@ -350,7 +350,7 @@ protected function rebuildCondAndBindValues($cond, array $bind_values)
}

$bind_value = array_shift($bind_values);
if ($bind_value instanceof SubselectInterface) {
if ($bind_value instanceof SelectInterface) {
$parts[$key] = $bind_value->getStatement();
$this->bind_values = array_merge(
$this->bind_values,
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @package Aura.SqlQuery
*
*/
class Select extends AbstractQuery implements SelectInterface, SubselectInterface
class Select extends AbstractQuery implements SelectInterface
{
use WhereTrait;
use LimitOffsetTrait { limit as setLimit; offset as setOffset; }
Expand Down
39 changes: 0 additions & 39 deletions src/Common/SubselectInterface.php

This file was deleted.

0 comments on commit 3be4c85

Please sign in to comment.