Skip to content

Commit

Permalink
typo (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
adaamz authored and dg committed Sep 17, 2018
1 parent 2cbe011 commit 923da3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DI/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -212,6 +212,7 @@ public function getByType($type, $throw = true)
} elseif ($throw) {
throw new MissingServiceException("Service of type $type not found.");
}
return null;
}


Expand Down

0 comments on commit 923da3e

Please sign in to comment.