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 407fb5c commit b8e9d21Copy full SHA for b8e9d21
packages/reflection/src/TypeReflector.php
@@ -263,7 +263,9 @@ private function resolveDefinition(PHPReflector|PHPReflectionType|string $reflec
263
));
264
}
265
266
- throw new Exception('Could not resolve type');
+ throw new \InvalidArgumentException(
267
+ sprintf('Could not resolve type for reflector of type: %s', get_debug_type($reflector))
268
+ );
269
270
271
private function resolveIsNullable(PHPReflectionType|PHPReflector|string $reflector): bool
0 commit comments