We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f34449 commit 69369f4Copy full SHA for 69369f4
src/Analyser/ExpressionTypeHolder.php
@@ -35,15 +35,15 @@ public function equals(self $other): bool
35
36
public function and(self $other): self
37
{
38
- if ($this->getType()->equals($other->getType())) {
39
- $type = $this->getType();
+ if ($this->type->equals($other->type)) {
+ $type = $this->type;
40
} else {
41
- $type = TypeCombinator::union($this->getType(), $other->getType());
+ $type = TypeCombinator::union($this->type, $other->type);
42
}
43
return new self(
44
$this->expr,
45
$type,
46
- $this->getCertainty()->and($other->getCertainty()),
+ $this->certainty->and($other->certainty),
47
);
48
49
0 commit comments