Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2992405
D25891.1740213383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
783 B
Referenced Files
None
Subscribers
None
D25891.1740213383.diff
View Options
diff --git a/src/applications/feed/query/PhabricatorFeedQuery.php b/src/applications/feed/query/PhabricatorFeedQuery.php
--- a/src/applications/feed/query/PhabricatorFeedQuery.php
+++ b/src/applications/feed/query/PhabricatorFeedQuery.php
@@ -18,7 +18,15 @@
return $this;
}
+ /**
+ * @param int|null $range_min Minimum epoch value of feed stories
+ * @param int|null $range_max Maximum epoch value of feed stories
+ */
public function withEpochInRange($range_min, $range_max) {
+ if ($range_min && $range_max && $range_min > $range_max) {
+ throw new PhutilArgumentUsageException(
+ pht('Feed query minimum range must be lower than maximum range.'));
+ }
$this->rangeMin = $range_min;
$this->rangeMax = $range_max;
return $this;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 08:36 (4 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181228
Default Alt Text
D25891.1740213383.diff (783 B)
Attached To
Mode
D25891: Check that min epoch < max epoch in PhabricatorFeedQuery::withEpochInRange()
Attached
Detach File
Event Timeline
Log In to Comment