adjust compiler text

This commit is contained in:
Km.Van
2026-07-14 10:46:25 +08:00
parent 0b39e8d9ed
commit 9fe322e386
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -125,11 +125,11 @@ final class Compiler
*/
private function getCodeViaFilePath(string $filePath): string
{
echo "Packing `{$filePath}`... ";
// echo "Packing `{$filePath}`... ";
$code = file_get_contents($filePath);
if (false === $code) {
echo "FAILED\n";
echo "[FAILED] {$filePath}\n";
return '';
}
@@ -140,7 +140,7 @@ final class Compiler
// 💡 Opt: Safely remove leading <?php tag via regex to avoid bugs caused by magic number 5
$code = preg_replace('/^<\\?php\\s*/i', '', $code);
echo "OK\n";
// echo "OK\n";
return $code . "\n";
}