Skip to content

Commit 83ed44a

Browse files
ondrejmirtesherndlm
authored andcommitted
Another failing test that suggests we can do this only for Variable now
1 parent 86a7c67 commit 83ed44a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PHPStan/Rules/Comparison/data/impossible-method-call.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ public function doDolor(\stdClass $std1, \stdClass $std2)
103103
}
104104
if ($this->isNotSame(self::returnFoo('b'), self::returnFoo('b'))) {
105105

106+
}
107+
if ($this->isSame(self::createStdClass('a')->foo, self::createStdClass('a')->foo)) {
108+
109+
}
110+
if ($this->isNotSame(self::createStdClass('b')->foo, self::createStdClass('b')->foo)) {
111+
106112
}
107113
}
108114

0 commit comments

Comments
 (0)