@@ -88,6 +88,9 @@ |
||
88 | 88 | return $this->normaliseTypes(...$types); |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $definition |
|
93 | + */ |
|
91 | 94 | private function getCurrentReturnTypeFromDocblock($definition): ?ReflectionType |
92 | 95 | { |
93 | 96 | $DOCBLOCK_REGEX = '/@method ((?:(?:[\w?|\\\\<>])+(?:\[])?)+) current/'; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | namespace Spatie\DataTransferObject; |
6 | 6 | |
7 | 7 | use ReflectionClass; |
8 | -use ReflectionException; |
|
9 | 8 | use ReflectionNamedType; |
10 | 9 | use ReflectionProperty; |
11 | 10 | use ReflectionType; |