Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2988349
D25891.1740147305.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
745 B
Referenced Files
None
Subscribers
None
D25891.1740147305.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 $range_min Minimum epoch value of feed stories
+ * @param int $range_max Maximum epoch value of feed stories
+ */
public function withEpochInRange($range_min, $range_max) {
+ if ($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
Fri, Feb 21, 14:15 (13 h, 28 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1177194
Default Alt Text
D25891.1740147305.diff (745 B)
Attached To
Mode
D25891: Check that min epoch < max epoch in PhabricatorFeedQuery::withEpochInRange()
Attached
Detach File
Event Timeline
Log In to Comment