We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e1faa5 commit 76d42f6Copy full SHA for 76d42f6
tests/FileDetector.php
@@ -161,7 +161,7 @@ public function GetMatchesForFileList( array $Files ) : array
161
162
foreach( $Files as $Path )
163
{
164
- $RegexesToTry = $this->Regexes[ self::NO_EXTENSION_KEY ];
+ $RegexesToTry = $this->Regexes[ self::NO_EXTENSION_KEY ] ?? [];
165
$Extension = strtolower( pathinfo( $Path, PATHINFO_EXTENSION ) );
166
167
if( isset( $this->Regexes[ $Extension ] ) )
0 commit comments