Fix php_strip_whitespace bugginess, fixes #3030
parent
e3f32a79f3
commit
a227523c4f
|
@ -115,7 +115,7 @@ class ClassMapGenerator
|
||||||
$traits = version_compare(PHP_VERSION, '5.4', '<') ? '' : '|trait';
|
$traits = version_compare(PHP_VERSION, '5.4', '<') ? '' : '|trait';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$contents = php_strip_whitespace($path);
|
$contents = @php_strip_whitespace($path);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \RuntimeException('Could not scan for classes inside '.$path.": \n".$e->getMessage(), 0, $e);
|
throw new \RuntimeException('Could not scan for classes inside '.$path.": \n".$e->getMessage(), 0, $e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue