diff --git a/app/common/command/build/Dist.php b/app/common/command/build/Dist.php index f216552..bc0f891 100644 --- a/app/common/command/build/Dist.php +++ b/app/common/command/build/Dist.php @@ -226,6 +226,12 @@ class Dist extends Command } }); + + $traverser_var_faker = new NodeTraverser(); + $traverser_var_faker->addVisitor(new NodeFakeVarVisitorTools); + + $file_stmts = $traverser_var_faker->traverse($file_stmts); + $function_code = $prettyPrinter->prettyPrintFile($file_stmts); $this->distFilesystem->put($item_file['path'], $function_code); @@ -285,9 +291,14 @@ class Dist extends Command } }); - $file_stmts = $traverser->traverse($file_stmts); + $traverser_var_faker = new NodeTraverser(); + $traverser_var_faker->addVisitor(new NodeFakeVarVisitorTools); + + $file_stmts = $traverser_var_faker->traverse($file_stmts); + + $function_code = $prettyPrinter->prettyPrintFile($file_stmts); $this->distFilesystem->put($item_file['path'], $function_code);