Skip to content

Commit

Permalink
Fixed EnumConcern label
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoxavier committed Jun 24, 2024
1 parent 603267e commit 061c86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/EnumConcern.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getTranslationNamespace(): string
{
$namespace = Str::snake(class_basename($this));

return $this->packagePrefix().'enums.'.Str::finish($namespace, '_enum') ? Str::replaceLast('_enum', '', $namespace) : $namespace;
return $this->packagePrefix().'enums.'.(Str::finish($namespace, '_enum') ? Str::replaceLast('_enum', '', $namespace) : $namespace);
}

/**
Expand Down

0 comments on commit 061c86b

Please sign in to comment.