mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 06:44:04 +00:00
Remove useless concatenation
This commit is contained in:
parent
5cdcc30b10
commit
25b8f405d5
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ trait From
|
|||
*/
|
||||
public static function fromName(string $case): static
|
||||
{
|
||||
return static::tryFromName($case) ?? throw new ValueError('"' . $case . '" is not a valid name for enum ' . static::class . '');
|
||||
return static::tryFromName($case) ?? throw new ValueError('"' . $case . '" is not a valid name for enum ' . static::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue