Skip to content

Commit bcb3607

Browse files
committed
unnecessary parameter check.
Signed-off-by: Andrey Pyzhikov <5071@mail.ru>
1 parent 7105029 commit bcb3607

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

system/Database/BaseBuilder.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,6 @@ public function selectCount(string $select = '', string $alias = '')
450450
*/
451451
public function selectSubquery(BaseBuilder $subquery, string $as): self
452452
{
453-
if (! $this->isSubquery($subquery)) {
454-
throw new DatabaseException(
455-
'The BaseBuilder::selectSubquery() method expects a BaseBuilder instance.'
456-
);
457-
}
458-
459453
$this->QBSelect[] = $this->buildSubquery($subquery, true, $as);
460454

461455
return $this;

0 commit comments

Comments
 (0)