Skip to content

Commit 00b4f89

Browse files
committed
Fix phpcs error
1 parent dbd94c9 commit 00b4f89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Doctrine/DBAL/Query/QueryParts.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public function __clone()
6767
$this->where = clone $this->where;
6868
}
6969

70-
if ($this->having !== null) {
71-
$this->having = clone $this->having;
70+
if ($this->having === null) {
71+
return;
7272
}
73+
74+
$this->having = clone $this->having;
7375
}
7476
}

0 commit comments

Comments
 (0)