File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ final class UuidUriVariableTransformer implements UriVariableTransformerInterfac
108
108
*/
109
109
public function transform($value, array $types, array $context = []) {
110
110
try {
111
- return Uuid::fromString($data );
111
+ return Uuid::fromString($value );
112
112
} catch (InvalidUuidStringException $e) {
113
113
throw new InvalidUriVariableException($e->getMessage());
114
114
}
@@ -123,7 +123,13 @@ final class UuidUriVariableTransformer implements UriVariableTransformerInterfac
123
123
*/
124
124
public function supportsTransformation($value, array $types, array $context = []): bool
125
125
{
126
- return is_a($type, Uuid::class, true);
126
+ foreach ($types as $type) {
127
+ if (is_a($type, Uuid::class, true)) {
128
+ return true;
129
+ }
130
+ }
131
+
132
+ return false;
127
133
}
128
134
}
129
135
```
You can’t perform that action at this time.
0 commit comments