We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701c8c9 commit 1a4f8b3Copy full SHA for 1a4f8b3
src/Analyser/MutatingScope.php
@@ -1001,7 +1001,7 @@ private function resolveType(Expr $node): Type
1001
}
1002
1003
if ($node instanceof Expr\BinaryOp\Spaceship) {
1004
- return new IntegerType();
+ return IntegerRangeType::fromInterval(-1, 1);
1005
1006
1007
if ($node instanceof Expr\AssignOp\Coalesce) {
0 commit comments