We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 860f7ce commit f7fe622Copy full SHA for f7fe622
src/Transformations/Format.php
@@ -11,9 +11,9 @@ class Format implements TransformationInterface
11
12
public static function transform(...$args): array
13
{
14
- $format = FormatEnum::tryFrom($args[0]);
+ $format = $args[0];
15
16
- if (! $format) {
+ if (! FormatEnum::tryFrom($format)) {
17
throw new \InvalidArgumentException('Invalid format');
18
}
19
0 commit comments