diff options
Diffstat (limited to 'includes/libs/filebackend')
-rw-r--r-- | includes/libs/filebackend/fileiteration/FileBackendStoreShardListIterator.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/libs/filebackend/fileiteration/FileBackendStoreShardListIterator.php b/includes/libs/filebackend/fileiteration/FileBackendStoreShardListIterator.php index 5a215e3b7c11..cf428777f075 100644 --- a/includes/libs/filebackend/fileiteration/FileBackendStoreShardListIterator.php +++ b/includes/libs/filebackend/fileiteration/FileBackendStoreShardListIterator.php @@ -65,7 +65,9 @@ abstract class FileBackendStoreShardListIterator extends FilterIterator { } public function accept(): bool { - $rel = $this->getInnerIterator()->current(); // path relative to given directory + $inner = $this->getInnerIterator(); + '@phan-var AppendIterator $inner'; + $rel = $inner->current(); // path relative to given directory $path = $this->params['dir'] . "/{$rel}"; // full storage path if ( $this->backend->isSingleShardPathInternal( $path ) ) { return true; // path is only on one shard; no issue with duplicates |