Fix final class keyword (#1517)

* Fix final class keyword

* Add changelog
This commit is contained in:
Barry vd. Heuvel
2024-02-15 15:23:20 +01:00
committed by GitHub
parent b47a118300
commit 77831852bb
4 changed files with 58 additions and 2 deletions
+1 -1
View File
@@ -1083,7 +1083,7 @@ class ModelsCommand extends Command
$classname = $this->write_mixin ? $mixinClassName : $classname;
$allowDynamicAttributes = $this->write_mixin ? "#[\AllowDynamicProperties]\n\t" : '';
$output = "namespace {$namespace}{\n{$docComment}\n\t{$keyword}{$allowDynamicAttributes}class {$classname} ";
$output = "namespace {$namespace}{\n{$docComment}\n\t{$allowDynamicAttributes}{$keyword}class {$classname} ";
if (!$this->write_mixin) {
$output .= "extends \Eloquent ";