Skip to content

Commit

Permalink
[5.x] Allow for undefined file type in ContainerAssetsStore (#10374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Molinero authored Jul 8, 2024
1 parent 3be3f3e commit e9fab13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stache/Stores/ContainerAssetsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public function paths()
private function getFiles()
{
return $this->container()->listContents()->reject(function ($file) {
return $file['type'] !== 'file'
return ! isset($file['type'])
|| $file['type'] !== 'file'
|| $file['path'] === ''
|| $file['dirname'] === '.meta'
|| Str::contains($file['path'], '/.meta/')
Expand Down

0 comments on commit e9fab13

Please sign in to comment.