Skip to content

Commit

Permalink
Make sure stubs end with newline
Browse files Browse the repository at this point in the history
Caught this using editorconfig checker:

.castor.stub.php:
        Wrong line endings or no final newline

1 errors found
  • Loading branch information
ruudk committed Oct 21, 2024
1 parent 551c03e commit 7e1265a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stub/StubsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function generateStubs(string $dest): void
],
]));

$code = (new Standard())->prettyPrintFile($stmts);
$code = (new Standard())->prettyPrintFile($stmts) . \PHP_EOL;

file_put_contents($dest, $code);
}
Expand Down

0 comments on commit 7e1265a

Please sign in to comment.