Skip to content

Commit 923da3e

Browse files
adaamzdg
authored andcommitted
typo (#167)
1 parent 2cbe011 commit 923da3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DI/Container.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function createService($name, array $args = [])
196196
* Resolves service by type.
197197
* @param string class or interface
198198
* @param bool throw exception if service doesn't exist?
199-
* @return object service or null
199+
* @return object|null service
200200
* @throws MissingServiceException
201201
*/
202202
public function getByType($type, $throw = true)
@@ -212,6 +212,7 @@ public function getByType($type, $throw = true)
212212
} elseif ($throw) {
213213
throw new MissingServiceException("Service of type $type not found.");
214214
}
215+
return null;
215216
}
216217

217218

0 commit comments

Comments
 (0)