@@ -6,7 +6,6 @@ |
||
6 | 6 | |
7 | 7 | use GraphQL\Doctrine\Annotation\Input; |
8 | 8 | use GraphQL\Doctrine\DocBlockReader; |
9 | -use GraphQL\Doctrine\Types; |
|
10 | 9 | use GraphQL\Type\Definition\Type; |
11 | 10 | use ReflectionMethod; |
12 | 11 |
@@ -72,8 +72,9 @@ |
||
72 | 72 | { |
73 | 73 | $class = new ReflectionClass($source); |
74 | 74 | |
75 | - if (!preg_match('~^(is|has)[A-Z]~', $name) || !$class->hasMethod($name)) |
|
76 | - $name = 'get' . ucfirst($name); |
|
75 | + if (!preg_match('~^(is|has)[A-Z]~', $name) || !$class->hasMethod($name)) { |
|
76 | + $name = 'get' . ucfirst($name); |
|
77 | + } |
|
77 | 78 | |
78 | 79 | if ($class->hasMethod($name)) { |
79 | 80 | $method = $class->getMethod($name); |