Skip to content

Commit f7fe622

Browse files
committed
Fix unreachable code error
1 parent 860f7ce commit f7fe622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transformations/Format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class Format implements TransformationInterface
1111

1212
public static function transform(...$args): array
1313
{
14-
$format = FormatEnum::tryFrom($args[0]);
14+
$format = $args[0];
1515

16-
if (! $format) {
16+
if (! FormatEnum::tryFrom($format)) {
1717
throw new \InvalidArgumentException('Invalid format');
1818
}
1919

0 commit comments

Comments
 (0)