@@ -141,8 +141,6 @@ |
||
141 | 141 | /** |
142 | 142 | * Check if parameter exists for argument. |
143 | 143 | * |
144 | - * @param Collection $params |
|
145 | - * @param Collection $arguments |
|
146 | 144 | */ |
147 | 145 | protected function checkParamsExists() |
148 | 146 | { |
@@ -11,9 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Functions; |
13 | 13 | |
14 | -use phpDocumentor\Descriptor\MethodDescriptor; |
|
15 | -use phpDocumentor\Descriptor\FunctionDescriptor; |
|
16 | -use phpDocumentor\Descriptor\Tag\ParamDescriptor; |
|
17 | 14 | use Symfony\Component\Validator\Constraint; |
18 | 15 | use Symfony\Component\Validator\ConstraintValidator; |
19 | 16 | use Symfony\Component\Validator\Exception\ConstraintDefinitionException; |
@@ -11,8 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Functions; |
13 | 13 | |
14 | -use phpDocumentor\Descriptor\MethodDescriptor; |
|
15 | -use phpDocumentor\Descriptor\FunctionDescriptor; |
|
16 | 14 | use phpDocumentor\Descriptor\Tag\ParamDescriptor; |
17 | 15 | use Symfony\Component\Validator\Constraint; |
18 | 16 | use Symfony\Component\Validator\ConstraintValidator; |
@@ -13,11 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use phpDocumentor\Descriptor\ArgumentDescriptor; |
15 | 15 | use phpDocumentor\Descriptor\Collection; |
16 | -use phpDocumentor\Descriptor\MethodDescriptor; |
|
17 | -use phpDocumentor\Descriptor\FunctionDescriptor; |
|
18 | 16 | use Symfony\Component\Validator\Constraint; |
19 | 17 | use Symfony\Component\Validator\ConstraintValidator; |
20 | -use Symfony\Component\Validator\Exception\ConstraintDefinitionException; |
|
21 | 18 | use phpDocumentor\Plugin\Core\Descriptor\Validator\ValidationValueObject; |
22 | 19 | |
23 | 20 | /** |
@@ -111,7 +111,7 @@ |
||
111 | 111 | * @param BaseReflector $element |
112 | 112 | * @param Tag[] $params The list of param tags to validate against. |
113 | 113 | * |
114 | - * @return bool whether an issue occurred. |
|
114 | + * @return null|Error whether an issue occurred. |
|
115 | 115 | */ |
116 | 116 | protected function isArgumentInDocBlock($index, ArgumentReflector $argument, BaseReflector $element, array $params) |
117 | 117 | { |
@@ -174,6 +174,9 @@ discard block |
||
174 | 174 | { |
175 | 175 | const INTERFACE_CONSTANT = 'test'; |
176 | 176 | |
177 | + /** |
|
178 | + * @return SubInterface|null |
|
179 | + */ |
|
177 | 180 | public function publicMethod(); |
178 | 181 | } |
179 | 182 | |
@@ -183,6 +186,10 @@ discard block |
||
183 | 186 | */ |
184 | 187 | interface AnotherSuperInterface |
185 | 188 | { |
189 | + |
|
190 | + /** |
|
191 | + * @return void |
|
192 | + */ |
|
186 | 193 | static public function staticMethod(); |
187 | 194 | } |
188 | 195 | } |
@@ -156,7 +156,7 @@ |
||
156 | 156 | /** |
157 | 157 | * Returns which templates and custom transformations need to be applied to the parsed data. |
158 | 158 | * |
159 | - * @return Transformer\Configuration\Transformations |
|
159 | + * @return Transformations[] |
|
160 | 160 | */ |
161 | 161 | public function getTransformations() |
162 | 162 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | * |
118 | 118 | * @param boolean $isVariadic |
119 | 119 | * |
120 | - * @return false |
|
120 | + * @return false|null |
|
121 | 121 | */ |
122 | 122 | public function setVariadic($isVariadic) |
123 | 123 | { |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @param string $type |
112 | 112 | * |
113 | - * @return string|boolean |
|
113 | + * @return string|false |
|
114 | 114 | */ |
115 | 115 | protected function findClassNameForType($type) |
116 | 116 | { |