Skip to content

Commit 76d42f6

Browse files
committed
Fallback
1 parent 0e1faa5 commit 76d42f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/FileDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function GetMatchesForFileList( array $Files ) : array
161161

162162
foreach( $Files as $Path )
163163
{
164-
$RegexesToTry = $this->Regexes[ self::NO_EXTENSION_KEY ];
164+
$RegexesToTry = $this->Regexes[ self::NO_EXTENSION_KEY ] ?? [];
165165
$Extension = strtolower( pathinfo( $Path, PATHINFO_EXTENSION ) );
166166

167167
if( isset( $this->Regexes[ $Extension ] ) )

0 commit comments

Comments
 (0)