Completed
Push — master ( de84eb...d1f862 )
by Jaap
18s queued 11s
created
src/phpDocumentor/Compiler/Pass/ResolveInlineLinkAndSeeTags.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * If a relative QSEN is provided then this method will attempt to resolve it given the current namespace and
173 173
      * namespace aliases.
174 174
      *
175
-     * @param Fqsen|string $link
175
+     * @param string|null $link
176 176
      *
177 177
      * @return Fqsen|string
178 178
      */
@@ -190,6 +190,7 @@  discard block
 block discarded – undo
190 190
      * be matched.
191 191
      *
192 192
      * @param Fqsen|string $link
193
+     * @param string $description
193 194
      */
194 195
     private function resolveElement(DescriptorAbstract $element, $link, ?string $description = null) : string
195 196
     {
@@ -248,7 +249,7 @@  discard block
 block discarded – undo
248 249
     /**
249 250
      * Generates a Markdown-formatted string representing a link with a description.
250 251
      *
251
-     * @param Fqsen|string $link
252
+     * @param string|null $link
252 253
      */
253 254
     private function generateMarkdownLink($link, string $description) : string
254 255
     {
Please login to merge, or discard this patch.
src/phpDocumentor/Descriptor/Builder/Reflector/FileAssembler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Creates a Descriptor from the provided data.
34 34
      *
35
-     * @param mixed $data
35
+     * @param File $data
36 36
      */
37 37
     public function create($data) : FileDescriptor
38 38
     {
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.
src/phpDocumentor/Descriptor/Interfaces/ChildInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@
 block discarded – undo
32 32
      * Sets the parent for this Descriptor.
33 33
      *
34 34
      * @param ?DescriptorAbstract $parent
35
+     * @return void
35 36
      */
36 37
     public function setParent(?DescriptorAbstract $parent) : void;
37 38
 }
Please login to merge, or discard this patch.
src/phpDocumentor/Descriptor/PropertyDescriptor.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -61,6 +61,7 @@
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * {@inheritDoc}
64
+     * @param null|string $default
64 65
      */
65 66
     public function setDefault(?string $default) : void
66 67
     {
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Configuration/ConfigurationFactoryTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@  discard block
 block discarded – undo
161 161
         new ConfigurationFactory(['this_is_not_a_strategy'], []);
162 162
     }
163 163
 
164
+    /**
165
+     * @param string $content
166
+     */
164 167
     private function givenExampleConfigurationFileWithContent($content) : string
165 168
     {
166 169
         vfsStream::newFile('foo.xml')
@@ -170,6 +173,10 @@  discard block
 block discarded – undo
170 173
         return vfsStream::url('dir/foo.xml');
171 174
     }
172 175
 
176
+    /**
177
+     * @param string[] $expectedInputValue
178
+     * @param string[] $returnValue
179
+     */
173 180
     private function givenAMiddlewareThatReturns($expectedInputValue, $returnValue) : Closure
174 181
     {
175 182
         return function ($value) use ($expectedInputValue, $returnValue) {
@@ -179,6 +186,9 @@  discard block
 block discarded – undo
179 186
         };
180 187
     }
181 188
 
189
+    /**
190
+     * @param string[] $result
191
+     */
182 192
     private function givenAValidStrategyThatReturns($result) : Strategy
183 193
     {
184 194
         /** @var m\Mock $strategy */
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.