Skip to content

Commit

Permalink
Reorder conditions
Browse files Browse the repository at this point in the history
Signed-off-by: pine3ree <[email protected]>
  • Loading branch information
pine3ree committed Oct 18, 2023
1 parent 5934dc7 commit 86e23bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sql/Clause/Join.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ public function __get(string $name)
return $this->specification;
}
if ('on' === $name) {
if ($this->specification instanceof On) {
return $this->specification;
}
if ($this->specification === null) {
$this->specification = new On();
$this->specification->setParent($this);
return $this->specification;
}
if ($this->specification instanceof On) {
return $this->specification;
}
return null;
}

Expand Down

0 comments on commit 86e23bb

Please sign in to comment.