@@ -155,7 +155,7 @@ |
||
155 | 155 | /** |
156 | 156 | * Creates a mocked Descriptor. |
157 | 157 | * |
158 | - * @return m\MockInterface|DescriptorAbstract |
|
158 | + * @return DescriptorAbstract |
|
159 | 159 | */ |
160 | 160 | private function createDescriptorMock() |
161 | 161 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | /** |
218 | 218 | * Returns a collection with descriptor. This collection will be scanned to see if a link can be made to a file. |
219 | 219 | * |
220 | - * @param DescriptorAbstract|m\MockInterface $descriptor |
|
220 | + * @param m\MockInterface $descriptor |
|
221 | 221 | * |
222 | 222 | * @return Collection|m\MockInterface |
223 | 223 | */ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * @param m\MockInterface $descriptor |
252 | 252 | * @param DescriptorAbstract $elementToLinkTo |
253 | 253 | * |
254 | - * @return DescriptorAbstract |
|
254 | + * @return m\MockInterface |
|
255 | 255 | */ |
256 | 256 | private function whenDescriptionContainsSeeOrLinkWithElement($descriptor, $elementToLinkTo) |
257 | 257 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @param string[] $templateNames |
51 | 51 | * |
52 | - * @return m\MockInterface|Factory |
|
52 | + * @return Factory |
|
53 | 53 | */ |
54 | 54 | private function givenAFactoryWithTemplateNames(array $templateNames) |
55 | 55 | { |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use phpDocumentor\Descriptor\Filter\Filter; |
17 | 17 | use phpDocumentor\Descriptor\Filter\Filterable; |
18 | 18 | use phpDocumentor\Descriptor\ProjectDescriptor\Settings; |
19 | -use phpDocumentor\Descriptor\Validator\Error; |
|
20 | 19 | use phpDocumentor\Reflection\Php\Project; |
21 | 20 | use phpDocumentor\Translator\Translator; |
22 | 21 | use Psr\Log\LogLevel; |
@@ -192,7 +192,7 @@ |
||
192 | 192 | * |
193 | 193 | * @param DescriptorAbstract $descriptor |
194 | 194 | * |
195 | - * @return DescriptorAbstract|null |
|
195 | + * @return null|Filterable |
|
196 | 196 | */ |
197 | 197 | protected function filterDescriptor($descriptor) |
198 | 198 | { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | * from the Input object. |
69 | 69 | * |
70 | 70 | * @see BaseConvertCommand::getConverter() for the basic functionality. |
71 | - * @return phpDocumentor\Plugin\Scrybe\Converter\ConverterInterface |
|
71 | + * @return ToLatexInterface |
|
72 | 72 | */ |
73 | 73 | protected function getConverter(InputInterface $input) |
74 | 74 | { |
@@ -196,6 +196,9 @@ |
||
196 | 196 | return $collection; |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $presentation |
|
201 | + */ |
|
199 | 202 | protected function renderLink($path, $presentation) |
200 | 203 | { |
201 | 204 | $url = false; |
@@ -189,6 +189,7 @@ discard block |
||
189 | 189 | * @param string $classFqsen |
190 | 190 | * @param string $tagName |
191 | 191 | * @param string $methodName |
192 | + * @param integer $expectedCount |
|
192 | 193 | * @Then class ":classFqsen" has a method named :method with exactly :expected tag :tagName |
193 | 194 | */ |
194 | 195 | public function classHasMethodWithExpectedCountTag($classFqsen, $tagName, $methodName, $expectedCount) |
@@ -439,6 +440,8 @@ discard block |
||
439 | 440 | |
440 | 441 | /** |
441 | 442 | * @throws Exception |
443 | + * @param string $classFqsen |
|
444 | + * @param string $methodName |
|
442 | 445 | */ |
443 | 446 | private function findMagicMethodResponse($classFqsen, $methodName): ReturnDescriptor |
444 | 447 | { |
@@ -27,7 +27,6 @@ |
||
27 | 27 | use phpDocumentor\Descriptor\Tag\ReturnDescriptor; |
28 | 28 | use phpDocumentor\Descriptor\Tag\VersionDescriptor; |
29 | 29 | use phpDocumentor\Descriptor\TraitDescriptor; |
30 | -use phpDocumentor\Reflection\Php\File; |
|
31 | 30 | use Webmozart\Assert\Assert; |
32 | 31 | |
33 | 32 | class ApiContext extends BaseContext implements Context |
@@ -163,6 +163,9 @@ discard block |
||
163 | 163 | { |
164 | 164 | const INTERFACE_CONSTANT = 'test'; |
165 | 165 | |
166 | + /** |
|
167 | + * @return SubInterface|null |
|
168 | + */ |
|
166 | 169 | public function publicMethod(); |
167 | 170 | } |
168 | 171 | |
@@ -172,6 +175,10 @@ discard block |
||
172 | 175 | */ |
173 | 176 | interface AnotherSuperInterface |
174 | 177 | { |
178 | + |
|
179 | + /** |
|
180 | + * @return void |
|
181 | + */ |
|
175 | 182 | public static function staticMethod(); |
176 | 183 | } |
177 | 184 | } |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Mockery as m; |
17 | 17 | use phpDocumentor\Descriptor\Collection; |
18 | 18 | use phpDocumentor\Descriptor\PackageDescriptor; |
19 | - |
|
20 | 19 | use phpDocumentor\Reflection\DocBlock; |
21 | 20 | use phpDocumentor\Reflection\Php\File; |
22 | 21 |