Fix compiler on Windows (#9730)
parent
41e329a458
commit
dfc69140fe
|
@ -135,7 +135,7 @@ class Compiler
|
||||||
foreach ($finder as $file) {
|
foreach ($finder as $file) {
|
||||||
if (in_array(realpath($file), $extraFiles, true)) {
|
if (in_array(realpath($file), $extraFiles, true)) {
|
||||||
unset($extraFiles[array_search(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;
|
$unexpectedFiles[] = (string) $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue