Completed
Pull Request — master (#2293)
by
unknown
07:16
created
tests/features/bootstrap/Ast/ApiContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -189,6 +189,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/ReferenceImplementation.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
172 175
      */
173 176
     interface AnotherSuperInterface
174 177
     {
178
+
179
+        /**
180
+         * @return void
181
+         */
175 182
         public static function staticMethod();
176 183
     }
177 184
 }
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Descriptor/PropertyDescriptorTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     /**
392 392
      * Sets up mocks as such that the fixture has a file.
393 393
      *
394
-     * @return m\MockInterface|FileDescriptor
394
+     * @return m\LegacyMockInterface
395 395
      */
396 396
     protected function whenFixtureIsDirectlyRelatedToAFile()
397 397
     {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     /**
404 404
      * Sets up mocks as such that the fixture has a parent class, with a file.
405 405
      *
406
-     * @return m\MockInterface|FileDescriptor
406
+     * @return m\LegacyMockInterface
407 407
      */
408 408
     protected function whenFixtureIsRelatedToAClassWithFile()
409 409
     {
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/Tags/UsesAssemblerTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@
 block discarded – undo
63 63
         $this->assertSame([], $descriptor->getErrors()->getAll());
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $description
68
+     * @param string $reference
69
+     */
66 70
     protected function givenAUsesTag($description, $reference) : Uses
67 71
     {
68 72
         return new Uses(
Please login to merge, or discard this patch.
src/phpDocumentor/Descriptor/Interfaces/ArgumentInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param ?Type $type Type of this agument represented as a reflection type.
37 37
      *
38 38
      * @todo update link to point to the final destination for the PHPDoc Standard.
39
+     * @return void
39 40
      */
40 41
     public function setType(?Type $type) : void;
41 42
 
@@ -43,6 +44,7 @@  discard block
 block discarded – undo
43 44
      * Returns a normalized Types.
44 45
      *
45 46
      * @see self::setTypes() for details on what types represent.
47
+     * @return Type|null
46 48
      */
47 49
     public function getType() : ?Type;
48 50
 
@@ -50,6 +52,7 @@  discard block
 block discarded – undo
50 52
      * Sets the default value for an argument expressed as a string.
51 53
      *
52 54
      * @param string $value A textual representation of the default value.
55
+     * @return void
53 56
      */
54 57
     public function setDefault(string $value) : void;
55 58
 
@@ -64,6 +67,7 @@  discard block
 block discarded – undo
64 67
      * Sets whether this argument passes its parameter by reference or by value.
65 68
      *
66 69
      * @param bool $byReference True if the parameter is passed by reference, otherwise it is by value.
70
+     * @return void
67 71
      */
68 72
     public function setByReference(bool $byReference) : void;
69 73
 
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/MethodAssemblerTest.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -169,6 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * Creates a sample method reflector for the tests with the given data.
172
+     * @param DocBlock $docBlockMock
172 173
      */
173 174
     protected function givenAMethodReflector(
174 175
         string $namespace,
@@ -189,6 +190,7 @@  discard block
 block discarded – undo
189 190
 
190 191
     /**
191 192
      * Generates a DocBlock object with applicable defaults for these tests.
193
+     * @param boolean $withTags
192 194
      */
193 195
     protected function givenADocBlockObject($withTags) : DocBlock
194 196
     {
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/Tags/SeeAssemblerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
         $this->assertSame([], $descriptor->getErrors()->getAll());
89 89
     }
90 90
 
91
+    /**
92
+     * @param string $description
93
+     */
91 94
     protected function givenASeeTag($reference, $description) : See
92 95
     {
93 96
         return new DocBlock\Tags\See(
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Descriptor/ConstantDescriptorTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      * The created ParentClass can be used to test the inheritance of properties of a constant descriptor, such as
343 343
      * inheriting type information.
344 344
      *
345
-     * @return m\MockInterface|ClassDescriptor
345
+     * @return m\LegacyMockInterface
346 346
      */
347 347
     protected function createParentClassWithSuperClassAndConstant(Type $type, string $constantName)
348 348
     {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     /**
373 373
      * Sets up mocks as such that the fixture has a file.
374 374
      *
375
-     * @return m\MockInterface|FileDescriptor
375
+     * @return m\LegacyMockInterface
376 376
      */
377 377
     protected function whenFixtureIsDirectlyRelatedToAFile()
378 378
     {
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     /**
385 385
      * Sets up mocks as such that the fixture has a parent class, with a file.
386 386
      *
387
-     * @return m\MockInterface|FileDescriptor
387
+     * @return m\LegacyMockInterface
388 388
      */
389 389
     protected function whenFixtureIsRelatedToAClassWithFile()
390 390
     {
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Descriptor/ProjectDescriptorBuilderTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      * When a FileReflector (or mock thereof) is passed to the 'get' method this mock will return an
91 91
      * empty instance of the FileDescriptor class.
92 92
      *
93
-     * @return m\MockInterface|AssemblerFactory
93
+     * @return m\LegacyMockInterface
94 94
      */
95 95
     protected function createAssemblerFactoryMock()
96 96
     {
Please login to merge, or discard this patch.