Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Commit 42e4f68

Browse files
authored
Update Where.php
1 parent 2e70d83 commit 42e4f68

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/QueryBuilder/Operator/Where.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Deimos\QueryBuilder\Operator;
44

5-
use Deimos\QueryBuilder\Instruction\Select;
5+
use Deimos\QueryBuilder\Instruction\Select as InstructionSelect;
66
use Deimos\QueryBuilder\RawQuery;
77

88
/**
@@ -91,7 +91,7 @@ protected function buildWhereOne(...$args)
9191
$_value = $args[1 + $equal];
9292
$raw = false;
9393

94-
if ($args[1 + $equal] instanceof RawQuery || $args[1 + $equal] instanceof Select)
94+
if ($args[1 + $equal] instanceof RawQuery || $args[1 + $equal] instanceof InstructionSelect)
9595
{
9696
$_value = '(' . (string)$args[1 + $equal] . ')';
9797
$raw = true;
@@ -214,4 +214,4 @@ protected function buildIf2String(array $storage, &$toStorage)
214214
$toStorage .= ')';
215215
}
216216

217-
}
217+
}

0 commit comments

Comments
 (0)