Skip to content

Commit

Permalink
修复 postWhere 闭包返回 IWhereCollector 对象时的错误 (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored May 26, 2024
1 parent 3093adc commit 82e53de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Db/Query/Where/WhereBrackets.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Imi\Db\Query\Interfaces\IBaseWhere;
use Imi\Db\Query\Interfaces\IQuery;
use Imi\Db\Query\Interfaces\IWhereBrackets;
use Imi\Db\Query\Interfaces\IWhereCollector;
use Imi\Db\Query\Traits\TRaw;
use Imi\Db\Query\WhereCollector;

Expand Down Expand Up @@ -97,7 +98,7 @@ public function toStringWithoutLogic(IQuery $query): string

return '(' . $result . ')';
}
elseif (null === $callResult)
elseif (null === $callResult || $callResult instanceof IWhereCollector)
{
$result = '(';
foreach ([
Expand Down

0 comments on commit 82e53de

Please sign in to comment.