From 061c86b823545c2c626a902019439eb77ebea798 Mon Sep 17 00:00:00 2001 From: nunoxavier Date: Mon, 24 Jun 2024 12:07:42 +0100 Subject: [PATCH] Fixed EnumConcern label --- src/Concerns/EnumConcern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/EnumConcern.php b/src/Concerns/EnumConcern.php index 204f9ea..12959a4 100644 --- a/src/Concerns/EnumConcern.php +++ b/src/Concerns/EnumConcern.php @@ -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); } /**