File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ public function get(string $type): DoctrineTypeDescriptor
25
25
{
26
26
$ typesMap = Type::getTypesMap ();
27
27
if (!isset ($ typesMap [$ type ])) {
28
- throw new DescriptorNotRegisteredException ();
28
+ throw new DescriptorNotRegisteredException ($ type );
29
29
}
30
30
31
31
/** @var class-string<Type> $typeClass */
32
32
$ typeClass = $ typesMap [$ type ];
33
33
if (!isset ($ this ->descriptors [$ typeClass ])) {
34
- throw new DescriptorNotRegisteredException ();
34
+ throw new DescriptorNotRegisteredException ($ typeClass );
35
35
}
36
36
return $ this ->descriptors [$ typeClass ];
37
37
}
@@ -42,7 +42,7 @@ public function get(string $type): DoctrineTypeDescriptor
42
42
public function getByClassName (string $ className ): DoctrineTypeDescriptor
43
43
{
44
44
if (!isset ($ this ->descriptors [$ className ])) {
45
- throw new DescriptorNotRegisteredException ();
45
+ throw new DescriptorNotRegisteredException ($ className );
46
46
}
47
47
return $ this ->descriptors [$ className ];
48
48
}
You can’t perform that action at this time.
0 commit comments