1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 15:34:04 +00:00

Remove useless concatenation

This commit is contained in:
Mark 2024-12-29 06:55:13 +01:00
parent 5cdcc30b10
commit 25b8f405d5
No known key found for this signature in database
GPG key ID: 79CFF7869BD39873

View file

@ -37,7 +37,7 @@ trait From
*/ */
public static function fromName(string $case): static 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);
} }
/** /**