1
0
Fork 0

Fix compiler on Windows (#9730)

pull/9748/head
John Stevenson 2021-02-26 15:26:47 +00:00 committed by GitHub
parent 41e329a458
commit dfc69140fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class Compiler
foreach ($finder as $file) {
if (in_array(realpath($file), $extraFiles, true)) {
unset($extraFiles[array_search(realpath($file), $extraFiles, true)]);
} elseif (!preg_match('{(/LICENSE|\.php)$}', $file)) {
} elseif (!preg_match('{([/\\\\]LICENSE|\.php)$}', $file)) {
$unexpectedFiles[] = (string) $file;
}