Skip to content

Commit

Permalink
[DI] fix docblocks in Container*
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 13, 2019
1 parent 7ae7a66 commit 8e4d08f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Symfony/Component/DependencyInjection/Container.php
Expand Up @@ -162,8 +162,8 @@ public function setParameter($name, $value)
* Setting a synthetic service to null resets it: has() returns false and get()
* behaves in the same way as if the service was never created.
*
* @param string $id The service identifier
* @param object $service The service instance
* @param string $id The service identifier
* @param object|null $service The service instance
*/
public function set($id, $service)
{
Expand Down Expand Up @@ -263,7 +263,7 @@ public function has($id)
* @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
* @return object|null The associated service
*
* @throws ServiceCircularReferenceException When a circular reference is detected
* @throws ServiceNotFoundException When the service is not defined
Expand Down
10 changes: 5 additions & 5 deletions src/Symfony/Component/DependencyInjection/ContainerBuilder.php
Expand Up @@ -519,8 +519,8 @@ public function getCompiler()
/**
* Sets a service.
*
* @param string $id The service identifier
* @param object $service The service instance
* @param string $id The service identifier
* @param object|null $service The service instance
*
* @throws BadMethodCallException When this ContainerBuilder is compiled
*/
Expand Down Expand Up @@ -571,7 +571,7 @@ public function has($id)
* @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
* @return object|null The associated service
*
* @throws InvalidArgumentException when no definitions are available
* @throws ServiceCircularReferenceException When a circular reference is detected
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public function findDefinition($id)
* @param string $id The service identifier
* @param bool $tryProxy Whether to try proxying the service with a lazy proxy
*
* @return object The service described by the service definition
* @return mixed The service described by the service definition
*
* @throws RuntimeException When the factory definition is incomplete
* @throws RuntimeException When the service is a synthetic service
Expand Down Expand Up @@ -1651,7 +1651,7 @@ private function callMethod($service, $call, array &$inlineServices)
* Shares a given service in the container.
*
* @param Definition $definition
* @param object $service
* @param mixed $service
* @param string|null $id
*/
private function shareService(Definition $definition, $service, $id, array &$inlineServices)
Expand Down
Expand Up @@ -32,8 +32,8 @@ interface ContainerInterface extends PsrContainerInterface
/**
* Sets a service.
*
* @param string $id The service identifier
* @param object $service The service instance
* @param string $id The service identifier
* @param object|null $service The service instance
*/
public function set($id, $service);

Expand All @@ -43,7 +43,7 @@ public function set($id, $service);
* @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
* @return object|null The associated service
*
* @throws ServiceCircularReferenceException When a circular reference is detected
* @throws ServiceNotFoundException When the service is not defined
Expand Down

0 comments on commit 8e4d08f

Please sign in to comment.