@@ -25,7 +25,6 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Get the description of a method from the doc block |
28 | - * @param ReflectionMethod $method |
|
29 | 28 | * @return string|null |
30 | 29 | */ |
31 | 30 | public function getMethodDescription(): ?string |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * Return the getter/isser method if any valid one exists |
67 | 67 | * @param mixed $source |
68 | 68 | * @param string $name |
69 | - * @return string |
|
69 | + * @return ReflectionMethod|null |
|
70 | 70 | */ |
71 | 71 | private function getGetter($source, string $name): ?ReflectionMethod |
72 | 72 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * Serializes an internal value to include in a response. |
40 | 40 | * |
41 | 41 | * @param mixed $value |
42 | - * @return mixed |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function serialize($value) |
45 | 45 | { |
@@ -128,12 +128,14 @@ |
||
128 | 128 | if (is_a($driver, MappingDriverChain::class)) { |
129 | 129 | $drivers = $driver->getDrivers(); |
130 | 130 | foreach ($drivers as $driver) { |
131 | - if (is_a($driver, AnnotationDriver::class)) |
|
132 | - return $driver->getReader(); |
|
131 | + if (is_a($driver, AnnotationDriver::class)) { |
|
132 | + return $driver->getReader(); |
|
133 | + } |
|
133 | 134 | } |
134 | 135 | } |
135 | - if (method_exists($driver, 'getReader')) |
|
136 | - return $driver->getReader(); |
|
136 | + if (method_exists($driver, 'getReader')) { |
|
137 | + return $driver->getReader(); |
|
138 | + } |
|
137 | 139 | return new AnnotationReader(); |
138 | 140 | } |
139 | 141 |