@@ -488,8 +488,8 @@ public function getCompiler()
488
488
/**
489
489
* Sets a service.
490
490
*
491
- * @param string $id The service identifier
492
- * @param object $service The service instance
491
+ * @param string $id The service identifier
492
+ * @param object|null $service The service instance
493
493
*
494
494
* @throws BadMethodCallException When this ContainerBuilder is compiled
495
495
*/
@@ -540,7 +540,7 @@ public function has($id)
540
540
* @param string $id The service identifier
541
541
* @param int $invalidBehavior The behavior when the service does not exist
542
542
*
543
- * @return object The associated service
543
+ * @return object|null The associated service
544
544
*
545
545
* @throws InvalidArgumentException when no definitions are available
546
546
* @throws ServiceCircularReferenceException When a circular reference is detected
@@ -1070,7 +1070,7 @@ public function findDefinition($id)
1070
1070
* @param string $id The service identifier
1071
1071
* @param bool $tryProxy Whether to try proxying the service with a lazy proxy
1072
1072
*
1073
- * @return object The service described by the service definition
1073
+ * @return mixed The service described by the service definition
1074
1074
*
1075
1075
* @throws RuntimeException When the factory definition is incomplete
1076
1076
* @throws RuntimeException When the service is a synthetic service
@@ -1636,7 +1636,7 @@ private function callMethod($service, $call, array &$inlineServices)
1636
1636
* Shares a given service in the container.
1637
1637
*
1638
1638
* @param Definition $definition
1639
- * @param object $service
1639
+ * @param mixed $service
1640
1640
* @param string|null $id
1641
1641
*/
1642
1642
private function shareService (Definition $ definition , $ service , $ id , array &$ inlineServices )
0 commit comments