From 923da3e2c0aa53162ef455472c0ac7787b096c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=BDurek?= Date: Mon, 17 Sep 2018 17:45:22 +0200 Subject: [PATCH] typo (#167) --- src/DI/Container.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DI/Container.php b/src/DI/Container.php index 1ec54f8f6..bf0c05423 100644 --- a/src/DI/Container.php +++ b/src/DI/Container.php @@ -196,7 +196,7 @@ public function createService($name, array $args = []) * Resolves service by type. * @param string class or interface * @param bool throw exception if service doesn't exist? - * @return object service or null + * @return object|null service * @throws MissingServiceException */ public function getByType($type, $throw = true) @@ -212,6 +212,7 @@ public function getByType($type, $throw = true) } elseif ($throw) { throw new MissingServiceException("Service of type $type not found."); } + return null; }