Completed
Push — master ( e3324e...f8d350 )
by Jaap
10:07 queued 10s
created
tests/integration/UsingTagsTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
 namespace phpDocumentor\Reflection;
14 14
 
15 15
 use Mockery as m;
16
-use phpDocumentor\Reflection\DocBlock\Description;
17
-use phpDocumentor\Reflection\DocBlock\Tag;
18 16
 use PHPUnit\Framework\TestCase;
19 17
 
20 18
 /**
Please login to merge, or discard this patch.
src/DocBlockFactory.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -74,6 +74,7 @@
 block discarded – undo
74 74
     /**
75 75
      * @param object|string $docblock A string containing the DocBlock to parse or an object supporting the
76 76
      *                                getDocComment method (such as a ReflectionClass object).
77
+     * @param Types\Context $context
77 78
      */
78 79
     public function create($docblock, ?Types\Context $context = null, ?Location $location = null) : DocBlock
79 80
     {
Please login to merge, or discard this patch.
src/DocBlock/TagFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@  discard block
 block discarded – undo
38 38
      * These parameters are injected at the last moment and will override any existing parameter with those names.
39 39
      *
40 40
      * @param mixed $value
41
+     * @return void
41 42
      */
42 43
     public function addParameter(string $name, $value) : void;
43 44
 
@@ -60,6 +61,7 @@  discard block
 block discarded – undo
60 61
      *
61 62
      * Because interfaces are regularly used as type-hints this method provides an alias parameter; if the FQCN of the
62 63
      * interface is passed as alias then every time that interface is requested the provided service will be returned.
64
+     * @return void
63 65
      */
64 66
     public function addService(object $service) : void;
65 67
 
@@ -80,6 +82,7 @@  discard block
 block discarded – undo
80 82
      * @throws InvalidArgumentException If the handler is not a string.
81 83
      * @throws InvalidArgumentException If the handler is not an existing class.
82 84
      * @throws InvalidArgumentException If the handler does not implement the {@see Tag} interface.
85
+     * @return void
83 86
      */
84 87
     public function registerTagHandler(string $tagName, string $handler) : void;
85 88
 }
Please login to merge, or discard this patch.
src/DocBlock/StandardTagFactory.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@  discard block
 block discarded – undo
137 137
         $this->addService($fqsenResolver, FqsenResolver::class);
138 138
     }
139 139
 
140
+    /**
141
+     * @param TypeContext $context
142
+     */
140 143
     public function create(string $tagLine, ?TypeContext $context = null) : Tag
141 144
     {
142 145
         if (!$context) {
@@ -149,7 +152,7 @@  discard block
 block discarded – undo
149 152
     }
150 153
 
151 154
     /**
152
-     * @param mixed $value
155
+     * @param string $value
153 156
      */
154 157
     public function addParameter(string $name, $value) : void
155 158
     {
@@ -245,7 +248,7 @@  discard block
 block discarded – undo
245 248
      * @param ReflectionParameter[] $parameters
246 249
      * @param mixed[]               $locator
247 250
      *
248
-     * @return mixed[] A series of values that can be passed to the Factory Method of the tag whose parameters
251
+     * @return callable A series of values that can be passed to the Factory Method of the tag whose parameters
249 252
      *     is provided with this method.
250 253
      */
251 254
     private function getArgumentsForParametersFromWiring(array $parameters, array $locator) : array
Please login to merge, or discard this patch.
src/DocBlock/Tags/Method.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -81,6 +81,11 @@
 block discarded – undo
81 81
         $this->description = $description;
82 82
     }
83 83
 
84
+    /**
85
+     * @param TypeResolver $typeResolver
86
+     * @param \Mockery\LegacyMockInterface $descriptionFactory
87
+     * @param TypeContext $context
88
+     */
84 89
     public static function create(
85 90
         string $body,
86 91
         ?TypeResolver $typeResolver = null,
Please login to merge, or discard this patch.
src/DocBlock/Tags/Return_.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -81,6 +81,11 @@
 block discarded – undo
81 81
         $this->description = $description;
82 82
     }
83 83
 
84
+    /**
85
+     * @param TypeResolver $typeResolver
86
+     * @param \Mockery\LegacyMockInterface $descriptionFactory
87
+     * @param TypeContext $context
88
+     */
84 89
     public static function create(
85 90
         string $body,
86 91
         ?TypeResolver $typeResolver = null,
Please login to merge, or discard this patch.
src/DocBlock/Tags/Throws.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -81,6 +81,11 @@
 block discarded – undo
81 81
         $this->description = $description;
82 82
     }
83 83
 
84
+    /**
85
+     * @param TypeResolver $typeResolver
86
+     * @param \Mockery\LegacyMockInterface $descriptionFactory
87
+     * @param TypeContext $context
88
+     */
84 89
     public static function create(
85 90
         string $body,
86 91
         ?TypeResolver $typeResolver = null,
Please login to merge, or discard this patch.
src/DocBlock/Tags/Generic.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -43,6 +43,8 @@
 block discarded – undo
43 43
     /**
44 44
      * Creates a new tag that represents any unknown tag type.
45 45
      *
46
+     * @param \Mockery\LegacyMockInterface $descriptionFactory
47
+     * @param TypeContext $context
46 48
      * @return static
47 49
      */
48 50
     public static function create(
Please login to merge, or discard this patch.
src/DocBlock/Tags/Source.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -47,6 +47,10 @@
 block discarded – undo
47 47
         $this->description  = $description;
48 48
     }
49 49
 
50
+    /**
51
+     * @param \Mockery\LegacyMockInterface $descriptionFactory
52
+     * @param TypeContext $context
53
+     */
50 54
     public static function create(
51 55
         string $body,
52 56
         ?DescriptionFactory $descriptionFactory = null,
Please login to merge, or discard this patch.