Skip to content

Commit d25a40f

Browse files
Philippe Segatorinicolas-grekas
authored andcommitted
Remove superfluous phpdoc tags
1 parent 7c98027 commit d25a40f

19 files changed

+42
-105
lines changed

Argument/RewindableGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class RewindableGenerator implements \IteratorAggregate, \Countable
2020
private $count;
2121

2222
/**
23-
* @param callable $generator
2423
* @param int|callable $count
2524
*/
2625
public function __construct(callable $generator, $count)

Compiler/AbstractRecursivePass.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ protected function processValue($value, $isRoot = false)
8181
}
8282

8383
/**
84-
* @param Definition $definition
85-
* @param bool $required
84+
* @param bool $required
8685
*
8786
* @return \ReflectionFunctionAbstract|null
8887
*
@@ -137,8 +136,7 @@ protected function getConstructor(Definition $definition, $required)
137136
}
138137

139138
/**
140-
* @param Definition $definition
141-
* @param string $method
139+
* @param string $method
142140
*
143141
* @throws RuntimeException
144142
*

Compiler/AutowirePass.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ public function process(ContainerBuilder $container)
7979
/**
8080
* Creates a resource to help know if this service has changed.
8181
*
82-
* @param \ReflectionClass $reflectionClass
83-
*
8482
* @return AutowireServiceResource
8583
*
8684
* @deprecated since version 3.3, to be removed in 4.0. Use ContainerBuilder::getReflectionClass() instead.
@@ -168,9 +166,6 @@ private function doProcessValue($value, $isRoot = false)
168166
}
169167

170168
/**
171-
* @param \ReflectionClass $reflectionClass
172-
* @param array $methodCalls
173-
*
174169
* @return array
175170
*/
176171
private function autowireCalls(\ReflectionClass $reflectionClass, array $methodCalls)
@@ -205,9 +200,6 @@ private function autowireCalls(\ReflectionClass $reflectionClass, array $methodC
205200
/**
206201
* Autowires the constructor or a method.
207202
*
208-
* @param \ReflectionFunctionAbstract $reflectionMethod
209-
* @param array $arguments
210-
*
211203
* @return array The autowired arguments
212204
*
213205
* @throws AutowiringFailedException
@@ -350,8 +342,7 @@ private function populateAvailableTypes($onlyAutowiringTypes = false)
350342
/**
351343
* Populates the list of available types for a given definition.
352344
*
353-
* @param string $id
354-
* @param Definition $definition
345+
* @param string $id
355346
*/
356347
private function populateAvailableType($id, Definition $definition, $onlyAutowiringTypes)
357348
{

Compiler/Compiler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ public function getLoggingFormatter()
7373
/**
7474
* Adds a pass to the PassConfig.
7575
*
76-
* @param CompilerPassInterface $pass A compiler pass
77-
* @param string $type The type of the pass
78-
* @param int $priority Used to sort the passes
76+
* @param CompilerPassInterface $pass A compiler pass
77+
* @param string $type The type of the pass
7978
*/
8079
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION/*, int $priority = 0*/)
8180
{

Compiler/PassConfig.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ public function getPasses()
113113
/**
114114
* Adds a pass.
115115
*
116-
* @param CompilerPassInterface $pass A Compiler pass
117-
* @param string $type The pass type
118-
* @param int $priority Used to sort the passes
116+
* @param CompilerPassInterface $pass A Compiler pass
117+
* @param string $type The pass type
119118
*
120119
* @throws InvalidArgumentException when a pass type doesn't exist
121120
*/

Compiler/PriorityTaggedServiceTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ trait PriorityTaggedServiceTrait
3131
* @see https://bugs.php.net/53710
3232
* @see https://bugs.php.net/60926
3333
*
34-
* @param string $tagName
35-
* @param ContainerBuilder $container
34+
* @param string $tagName
3635
*
3736
* @return Reference[]
3837
*/

Compiler/ResolveReferencesToAliasesPass.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ protected function processValue($value, $isRoot = false)
5656
/**
5757
* Resolves an alias into a definition id.
5858
*
59-
* @param string $id The definition or alias id to resolve
60-
* @param ContainerBuilder $container
59+
* @param string $id The definition or alias id to resolve
6160
*
6261
* @return string The definition id with aliases resolved
6362
*/

Compiler/ServiceLocatorTagPass.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ protected function processValue($value, $isRoot = false)
7676
}
7777

7878
/**
79-
* @param ContainerBuilder $container
80-
* @param Reference[] $refMap
81-
* @param string|null $callerId
79+
* @param Reference[] $refMap
80+
* @param string|null $callerId
8281
*
8382
* @return Reference
8483
*/

Compiler/ServiceReferenceGraph.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ public function clear()
8989
* @param string $destId
9090
* @param mixed $destValue
9191
* @param string $reference
92-
* @param bool $lazy
93-
* @param bool $weak
94-
* @param bool $byConstructor
9592
*/
9693
public function connect($sourceId, $sourceValue, $destId, $destValue = null, $reference = null/*, bool $lazy = false, bool $weak = false, bool $byConstructor = false*/)
9794
{

Compiler/ServiceReferenceGraphEdge.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ class ServiceReferenceGraphEdge
2828
private $byConstructor;
2929

3030
/**
31-
* @param ServiceReferenceGraphNode $sourceNode
32-
* @param ServiceReferenceGraphNode $destNode
33-
* @param mixed $value
34-
* @param bool $lazy
35-
* @param bool $weak
36-
* @param bool $byConstructor
31+
* @param mixed $value
32+
* @param bool $lazy
33+
* @param bool $weak
34+
* @param bool $byConstructor
3735
*/
3836
public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, $lazy = false, $weak = false, $byConstructor = false)
3937
{

0 commit comments

Comments
 (0)