Skip to content

Commit 69628d2

Browse files
DenTrayCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 21ef6ff commit 69628d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/ModelGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ protected function insertPropertyAnnotation(string &$content, string $propertyDa
270270
if (!Str::contains($content, '/**')) {
271271
$content = preg_replace('/^\s*class[\s\S]+?\{/m', "\n/**\n {$annotation}\n */$0", $content);
272272
} else {
273-
$content = preg_replace('/\*\/\n/', "{$annotation}\n $0", $content);
273+
$content = preg_replace('/\*\//m', "{$annotation}\n $0", $content);
274274
}
275275

276276
if (Str::contains($propertyDataType, 'Collection')) {

0 commit comments

Comments
 (0)