Commit a9d1698e authored by Igor Wiedler's avatar Igor Wiedler

do not read files twice when compiling

parent daf86055
......@@ -72,7 +72,7 @@ class Compiler
$path = str_replace(realpath(__DIR__.'/../..').'/', '', $file->getRealPath());
$content = file_get_contents($file);
if ($strip) {
$content = Kernel::stripComments(file_get_contents($file));
$content = Kernel::stripComments($content);
}
$phar->addFromString($path, $content);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment