Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Mar 16, 2024
1 parent 47fad7f commit 5e3de97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Indexer/Model/IndexJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function generator(): Generator
foreach ($this->fileList as $fileInfo) {
assert($fileInfo instanceof SplFileInfo);

// TODO: could refactor this to iterate the PHAR in the file list provider.
if ($fileInfo->getExtension() === 'phar') {
$phar = new Phar($fileInfo->getPathname(), FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME);
yield from $this->indexPharFile($phar);
Expand Down

0 comments on commit 5e3de97

Please sign in to comment.