Browse Source

Tweaks from PR #58

1.0
Andrés Montañez 11 years ago
parent
commit
b6ab981f4d
  1. 2
      Mage/Compiler.php

2
Mage/Compiler.php

@ -39,7 +39,7 @@ class Compiler
$phar->startBuffering();
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::CHILD_FIRST);
/** @var $path \SplFileInfo */
/** @var \SplFileInfo $path */
foreach ($iterator as $path) {
if ($path->isFile()) {
$phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path));

Loading…
Cancel
Save