Skip to content

Commit

Permalink
Merge branch '3.4' into 4.3
Browse files Browse the repository at this point in the history
* 3.4:
  Remove superfluous phpdoc tags
  • Loading branch information
nicolas-grekas committed Aug 14, 2019
2 parents a51dd70 + d25a40f commit 044de92
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 67 deletions.
1 change: 0 additions & 1 deletion Argument/RewindableGenerator.php
Expand Up @@ -20,7 +20,6 @@ class RewindableGenerator implements \IteratorAggregate, \Countable
private $count;

/**
* @param callable $generator
* @param int|callable $count
*/
public function __construct(callable $generator, $count)
Expand Down
6 changes: 2 additions & 4 deletions Compiler/AbstractRecursivePass.php
Expand Up @@ -105,8 +105,7 @@ protected function processValue($value, $isRoot = false)
}

/**
* @param Definition $definition
* @param bool $required
* @param bool $required
*
* @return \ReflectionFunctionAbstract|null
*
Expand Down Expand Up @@ -161,8 +160,7 @@ protected function getConstructor(Definition $definition, $required)
}

/**
* @param Definition $definition
* @param string $method
* @param string $method
*
* @throws RuntimeException
*
Expand Down
5 changes: 0 additions & 5 deletions Compiler/AutowirePass.php
Expand Up @@ -137,11 +137,6 @@ private function doProcessValue($value, $isRoot = false)
return $value;
}

/**
* @param \ReflectionClass $reflectionClass
*
* @return array
*/
private function autowireCalls(\ReflectionClass $reflectionClass, bool $isRoot): array
{
$this->decoratedId = null;
Expand Down
5 changes: 2 additions & 3 deletions Compiler/Compiler.php
Expand Up @@ -54,9 +54,8 @@ public function getServiceReferenceGraph()
/**
* Adds a pass to the PassConfig.
*
* @param CompilerPassInterface $pass A compiler pass
* @param string $type The type of the pass
* @param int $priority Used to sort the passes
* @param CompilerPassInterface $pass A compiler pass
* @param string $type The type of the pass
*/
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
{
Expand Down
5 changes: 2 additions & 3 deletions Compiler/PassConfig.php
Expand Up @@ -110,9 +110,8 @@ public function getPasses()
/**
* Adds a pass.
*
* @param CompilerPassInterface $pass A Compiler pass
* @param string $type The pass type
* @param int $priority Used to sort the passes
* @param CompilerPassInterface $pass A Compiler pass
* @param string $type The pass type
*
* @throws InvalidArgumentException when a pass type doesn't exist
*/
Expand Down
1 change: 0 additions & 1 deletion Compiler/PriorityTaggedServiceTrait.php
Expand Up @@ -35,7 +35,6 @@ trait PriorityTaggedServiceTrait
* @see https://bugs.php.net/60926
*
* @param string|TaggedIteratorArgument $tagName
* @param ContainerBuilder $container
*
* @return Reference[]
*/
Expand Down
5 changes: 2 additions & 3 deletions Compiler/ServiceLocatorTagPass.php
Expand Up @@ -87,9 +87,8 @@ protected function processValue($value, $isRoot = false)
}

/**
* @param ContainerBuilder $container
* @param Reference[] $refMap
* @param string|null $callerId
* @param Reference[] $refMap
* @param string|null $callerId
*
* @return Reference
*/
Expand Down
3 changes: 0 additions & 3 deletions ContainerBuilder.php
Expand Up @@ -384,8 +384,6 @@ public function getReflectionClass(?string $class, bool $throw = true): ?\Reflec
* @param bool|string $trackContents Whether to track contents of the given resource. If a string is passed,
* it will be used as pattern for tracking contents of the requested directory
*
* @return bool
*
* @final
*/
public function fileExists(string $path, $trackContents = true): bool
Expand Down Expand Up @@ -1635,7 +1633,6 @@ private function callMethod($service, $call, array &$inlineServices)
/**
* Shares a given service in the container.
*
* @param Definition $definition
* @param mixed $service
* @param string|null $id
*/
Expand Down
2 changes: 0 additions & 2 deletions Definition.php
Expand Up @@ -857,8 +857,6 @@ public function getBindings()
* injected in the matching parameters (of the constructor, of methods
* called and of controller actions).
*
* @param array $bindings
*
* @return $this
*/
public function setBindings(array $bindings)
Expand Down
15 changes: 5 additions & 10 deletions Dumper/XmlDumper.php
Expand Up @@ -94,9 +94,8 @@ private function addMethodCalls(array $methodcalls, \DOMElement $parent)
/**
* Adds a service.
*
* @param Definition $definition
* @param string $id
* @param \DOMElement $parent
* @param Definition $definition
* @param string $id
*/
private function addService($definition, $id, \DOMElement $parent)
{
Expand Down Expand Up @@ -218,9 +217,7 @@ private function addService($definition, $id, \DOMElement $parent)
/**
* Adds a service alias.
*
* @param string $alias
* @param Alias $id
* @param \DOMElement $parent
* @param string $alias
*/
private function addServiceAlias($alias, Alias $id, \DOMElement $parent)
{
Expand Down Expand Up @@ -266,10 +263,8 @@ private function addServices(\DOMElement $parent)
/**
* Converts parameters.
*
* @param array $parameters
* @param string $type
* @param \DOMElement $parent
* @param string $keyAttribute
* @param string $type
* @param string $keyAttribute
*/
private function convertParameters(array $parameters, $type, \DOMElement $parent, $keyAttribute = 'key')
{
Expand Down
5 changes: 2 additions & 3 deletions LazyProxy/PhpDumper/DumperInterface.php
Expand Up @@ -30,9 +30,8 @@ public function isProxyCandidate(Definition $definition);
/**
* Generates the code to be used to instantiate a proxy in the dumped factory code.
*
* @param Definition $definition
* @param string $id Service identifier
* @param string $factoryCode The code to execute to create the service
* @param string $id Service identifier
* @param string $factoryCode The code to execute to create the service
*
* @return string
*/
Expand Down
3 changes: 1 addition & 2 deletions Loader/FileLoader.php
Expand Up @@ -86,8 +86,7 @@ public function registerClasses(Definition $prototype, $namespace, $resource, $e
/**
* Registers a definition in the container with its instanceof-conditionals.
*
* @param string $id
* @param Definition $definition
* @param string $id
*/
protected function setDefinition($id, Definition $definition)
{
Expand Down
38 changes: 12 additions & 26 deletions Loader/XmlFileLoader.php
Expand Up @@ -88,8 +88,7 @@ public function supports($resource, $type = null)
/**
* Parses parameters.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseParameters(\DOMDocument $xml, $file)
{
Expand All @@ -101,8 +100,7 @@ private function parseParameters(\DOMDocument $xml, $file)
/**
* Parses imports.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseImports(\DOMDocument $xml, $file)
{
Expand All @@ -123,8 +121,7 @@ private function parseImports(\DOMDocument $xml, $file)
/**
* Parses multiple definitions.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseDefinitions(\DOMDocument $xml, $file, $defaults)
{
Expand Down Expand Up @@ -208,9 +205,7 @@ private function getServiceDefaults(\DOMDocument $xml, $file)
/**
* Parses an individual Definition.
*
* @param \DOMElement $service
* @param string $file
* @param array $defaults
* @param string $file
*
* @return Definition|null
*/
Expand Down Expand Up @@ -421,9 +416,8 @@ private function parseFileToDOM($file)
/**
* Processes anonymous services.
*
* @param \DOMDocument $xml
* @param string $file
* @param array $defaults
* @param string $file
* @param array $defaults
*/
private function processAnonymousServices(\DOMDocument $xml, $file, $defaults)
{
Expand Down Expand Up @@ -472,10 +466,9 @@ private function processAnonymousServices(\DOMDocument $xml, $file, $defaults)
/**
* Returns arguments as valid php types.
*
* @param \DOMElement $node
* @param string $name
* @param string $file
* @param bool $lowercase
* @param string $name
* @param string $file
* @param bool $lowercase
*
* @return mixed
*/
Expand Down Expand Up @@ -582,8 +575,7 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase =
/**
* Get child elements by name.
*
* @param \DOMNode $node
* @param mixed $name
* @param mixed $name
*
* @return \DOMElement[]
*/
Expand All @@ -602,8 +594,6 @@ private function getChildren(\DOMNode $node, $name)
/**
* Validates a documents XML schema.
*
* @param \DOMDocument $dom
*
* @return bool
*
* @throws RuntimeException When extension references a non-existent XSD file
Expand Down Expand Up @@ -681,8 +671,7 @@ public function validateSchema(\DOMDocument $dom)
/**
* Validates an alias.
*
* @param \DOMElement $alias
* @param string $file
* @param string $file
*/
private function validateAlias(\DOMElement $alias, $file)
{
Expand All @@ -705,8 +694,7 @@ private function validateAlias(\DOMElement $alias, $file)
/**
* Validates an extension.
*
* @param \DOMDocument $dom
* @param string $file
* @param string $file
*
* @throws InvalidArgumentException When no extension is found corresponding to a tag
*/
Expand All @@ -727,8 +715,6 @@ private function validateExtensions(\DOMDocument $dom, $file)

/**
* Loads from an extension.
*
* @param \DOMDocument $xml
*/
private function loadFromExtensions(\DOMDocument $xml)
{
Expand Down
1 change: 0 additions & 1 deletion Loader/YamlFileLoader.php
Expand Up @@ -309,7 +309,6 @@ private function isUsingShortSyntax(array $service): bool
* @param string $id
* @param array|string $service
* @param string $file
* @param array $defaults
*
* @throws InvalidArgumentException When tags are invalid
*/
Expand Down

0 comments on commit 044de92

Please sign in to comment.