Skip to content

Commit 1ea4c17

Browse files
authored
Merge pull request #120 from eli-s-r/main
Fix undefined array key error in `SnapshotRepository::getAll()`
2 parents 99d12c7 + 57e44b4 commit 1ea4c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SnapshotRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getAll(): Collection
1919
->filter(function (string $fileName) {
2020
$pathinfo = pathinfo($fileName);
2121

22-
if ($pathinfo['extension'] === 'gz') {
22+
if (($pathinfo['extension'] ?? null) === 'gz') {
2323
$fileName = $pathinfo['filename'];
2424
}
2525

0 commit comments

Comments
 (0)