Skip to content

Commit

Permalink
StaticFactory :: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atakde committed Jul 19, 2022
1 parent 54f8092 commit 719593c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Creational/StaticFactory/StaticFactory.php
Expand Up @@ -14,7 +14,7 @@ final class StaticFactory
{
public static function factory(string $type): Formatter
{
return match($type) {
return match ($type) {
'number' => new FormatNumber(),
'string' => new FormatString(),
default => throw new InvalidArgumentException('Unknown format given'),
Expand Down

0 comments on commit 719593c

Please sign in to comment.