Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tastphp/framework
Browse files Browse the repository at this point in the history
  • Loading branch information
xujiajun committed Oct 20, 2017
2 parents d73fbc6 + a649ab4 commit b2a5029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/Container/PimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(Container $container)
*/
public function get($id)
{
if (!isset($this->container[$id])) {
if (!$this->has($id)) {
throw new NotFoundException(sprintf('Identifier "%s" is not defined in container.', $id));
}
return $this->container[$id];
Expand All @@ -38,4 +38,4 @@ public function has($id)
{
return isset($this->container[$id]);
}
}
}

0 comments on commit b2a5029

Please sign in to comment.