Skip to content

Commit 7a03411

Browse files
authored
operator <=> (#44154)
return int 1, 0, -1
1 parent 824a2b0 commit 7a03411

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Collections/Traits/EnumeratesValues.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ protected function operatorForWhere($key, $operator = null, $value = null)
10421042
case '>=': return $retrieved >= $value;
10431043
case '===': return $retrieved === $value;
10441044
case '!==': return $retrieved !== $value;
1045+
case '<=>': return $retrieved <=> $value;
10451046
}
10461047
};
10471048
}

0 commit comments

Comments
 (0)