@@ -519,8 +519,8 @@ public function getCompiler()
519
519
/**
520
520
* Sets a service.
521
521
*
522
- * @param string $id The service identifier
523
- * @param object $service The service instance
522
+ * @param string $id The service identifier
523
+ * @param object|null $service The service instance
524
524
*
525
525
* @throws BadMethodCallException When this ContainerBuilder is compiled
526
526
*/
@@ -571,7 +571,7 @@ public function has($id)
571
571
* @param string $id The service identifier
572
572
* @param int $invalidBehavior The behavior when the service does not exist
573
573
*
574
- * @return object The associated service
574
+ * @return object|null The associated service
575
575
*
576
576
* @throws InvalidArgumentException when no definitions are available
577
577
* @throws ServiceCircularReferenceException When a circular reference is detected
@@ -1104,7 +1104,7 @@ public function findDefinition($id)
1104
1104
* @param string $id The service identifier
1105
1105
* @param bool $tryProxy Whether to try proxying the service with a lazy proxy
1106
1106
*
1107
- * @return object The service described by the service definition
1107
+ * @return mixed The service described by the service definition
1108
1108
*
1109
1109
* @throws RuntimeException When the factory definition is incomplete
1110
1110
* @throws RuntimeException When the service is a synthetic service
@@ -1651,7 +1651,7 @@ private function callMethod($service, $call, array &$inlineServices)
1651
1651
* Shares a given service in the container.
1652
1652
*
1653
1653
* @param Definition $definition
1654
- * @param object $service
1654
+ * @param mixed $service
1655
1655
* @param string|null $id
1656
1656
*/
1657
1657
private function shareService (Definition $ definition , $ service , $ id , array &$ inlineServices )
0 commit comments