Skip to content

Commit

Permalink
Fixed command
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jun 17, 2021
1 parent 5195a64 commit e0e6e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/CodeGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function handle()

foreach ($finder as $item) {
$path = $item->getRealPath();
$code = $generator->generate($path);
$code = $generator->generate(file_get_contents($path));
file_put_contents($path, $code);
}
}
Expand Down

0 comments on commit e0e6e4d

Please sign in to comment.