We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8f5be7 commit 86fc91fCopy full SHA for 86fc91f
src/Analyser/SpecifiedTypes.php
@@ -62,6 +62,10 @@ public function setAlwaysOverwriteTypes(): self
62
*/
63
public function setRootExpr(?Expr $rootExpr): self
64
{
65
+ if ($this->rootExpr === $rootExpr) {
66
+ return $this;
67
+ }
68
+
69
$self = new self($this->sureTypes, $this->sureNotTypes);
70
$self->overwrite = $this->overwrite;
71
$self->newConditionalExpressionHolders = $this->newConditionalExpressionHolders;
0 commit comments