@@ -519,8 +519,8 @@ public function getCompiler()
519519 /**
520520 * Sets a service.
521521 *
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
524524 *
525525 * @throws BadMethodCallException When this ContainerBuilder is compiled
526526 */
@@ -571,7 +571,7 @@ public function has($id)
571571 * @param string $id The service identifier
572572 * @param int $invalidBehavior The behavior when the service does not exist
573573 *
574- * @return object The associated service
574+ * @return object|null The associated service
575575 *
576576 * @throws InvalidArgumentException when no definitions are available
577577 * @throws ServiceCircularReferenceException When a circular reference is detected
@@ -1104,7 +1104,7 @@ public function findDefinition($id)
11041104 * @param string $id The service identifier
11051105 * @param bool $tryProxy Whether to try proxying the service with a lazy proxy
11061106 *
1107- * @return object The service described by the service definition
1107+ * @return mixed The service described by the service definition
11081108 *
11091109 * @throws RuntimeException When the factory definition is incomplete
11101110 * @throws RuntimeException When the service is a synthetic service
@@ -1651,7 +1651,7 @@ private function callMethod($service, $call, array &$inlineServices)
16511651 * Shares a given service in the container.
16521652 *
16531653 * @param Definition $definition
1654- * @param object $service
1654+ * @param mixed $service
16551655 * @param string|null $id
16561656 */
16571657 private function shareService (Definition $ definition , $ service , $ id , array &$ inlineServices )
0 commit comments