Skip to content

Commit fb1367d

Browse files
committed
Re-check for raw queries
1 parent 4ca912a commit fb1367d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function useWritePdo()
4646
*/
4747
public function selectSub($query, $as)
4848
{
49-
if (get_class($query) == self::class) {
49+
if (! is_string($query) && get_class($query) == self::class) {
5050
$this->appendCacheTags($query->getCacheTags() ?? []);
5151
}
5252

0 commit comments

Comments
 (0)