Skip to content

Commit d03cfdf

Browse files
committed
Reduce method calls in ExpressionTypeHolder
1 parent da73771 commit d03cfdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Analyser/ExpressionTypeHolder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public function equals(self $other): bool
3535

3636
public function and(self $other): self
3737
{
38-
if ($this->getType()->equals($other->getType())) {
39-
$type = $this->getType();
38+
if ($this->type->equals($other->type)) {
39+
$type = $this->type;
4040
} else {
41-
$type = TypeCombinator::union($this->getType(), $other->getType());
41+
$type = TypeCombinator::union($this->type, $other->type);
4242
}
4343
return new self(
4444
$this->expr,
4545
$type,
46-
$this->getCertainty()->and($other->getCertainty()),
46+
$this->certainty->and($other->certainty),
4747
);
4848
}
4949

0 commit comments

Comments
 (0)