@@ -488,8 +488,8 @@ public function getCompiler()
488488 /**
489489 * Sets a service.
490490 *
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
493493 *
494494 * @throws BadMethodCallException When this ContainerBuilder is compiled
495495 */
@@ -540,7 +540,7 @@ public function has($id)
540540 * @param string $id The service identifier
541541 * @param int $invalidBehavior The behavior when the service does not exist
542542 *
543- * @return object The associated service
543+ * @return object|null The associated service
544544 *
545545 * @throws InvalidArgumentException when no definitions are available
546546 * @throws ServiceCircularReferenceException When a circular reference is detected
@@ -1070,7 +1070,7 @@ public function findDefinition($id)
10701070 * @param string $id The service identifier
10711071 * @param bool $tryProxy Whether to try proxying the service with a lazy proxy
10721072 *
1073- * @return object The service described by the service definition
1073+ * @return mixed The service described by the service definition
10741074 *
10751075 * @throws RuntimeException When the factory definition is incomplete
10761076 * @throws RuntimeException When the service is a synthetic service
@@ -1636,7 +1636,7 @@ private function callMethod($service, $call, array &$inlineServices)
16361636 * Shares a given service in the container.
16371637 *
16381638 * @param Definition $definition
1639- * @param object $service
1639+ * @param mixed $service
16401640 * @param string|null $id
16411641 */
16421642 private function shareService (Definition $ definition , $ service , $ id , array &$ inlineServices )
0 commit comments