Skip to content

Commit

Permalink
Patch policy files: don't overwrite #5
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobg committed Feb 3, 2021
1 parent 399307a commit 9ef48ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modelarium/Laravel/Targets/PolicyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public function generate(): GeneratedCollection
new GeneratedItem(
GeneratedItem::TYPE_POLICY,
"<?php declare(strict_types=1);\n\n" . $printer->printNamespace($namespace),
$this->getGenerateFilename($name)
$this->getGenerateFilename($name),
true
)
);
}
Expand Down

0 comments on commit 9ef48ca

Please sign in to comment.