Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13992811
D15869.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
335 B
Referenced Files
None
Subscribers
None
D15869.diff
View Options
diff --git a/src/utils/PhutilBufferedIterator.php b/src/utils/PhutilBufferedIterator.php
--- a/src/utils/PhutilBufferedIterator.php
+++ b/src/utils/PhutilBufferedIterator.php
@@ -89,7 +89,7 @@
* @task iterator
*/
final public function valid() {
- return (bool)$this->data;
+ return (bool)count($this->data);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 23, 6:57 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714401
Default Alt Text
D15869.diff (335 B)
Attached To
Mode
D15869: Fix LiskMigrationIterator scaling in O(n^2)
Attached
Detach File
Event Timeline
Log In to Comment