Skip to content

Commit

Permalink
Merge pull request #120 from eli-s-r/main
Browse files Browse the repository at this point in the history
Fix undefined array key error in `SnapshotRepository::getAll()`
  • Loading branch information
freekmurze authored Jul 29, 2022
2 parents 99d12c7 + 57e44b4 commit 1ea4c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SnapshotRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getAll(): Collection
->filter(function (string $fileName) {
$pathinfo = pathinfo($fileName);

if ($pathinfo['extension'] === 'gz') {
if (($pathinfo['extension'] ?? null) === 'gz') {
$fileName = $pathinfo['filename'];
}

Expand Down

0 comments on commit 1ea4c17

Please sign in to comment.