Skip to content

Commit b2a5029

Browse files
committed
Merge branch 'master' of https://github.com/tastphp/framework
2 parents d73fbc6 + a649ab4 commit b2a5029

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Framework/Container/PimpleContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(Container $container)
2424
*/
2525
public function get($id)
2626
{
27-
if (!isset($this->container[$id])) {
27+
if (!$this->has($id)) {
2828
throw new NotFoundException(sprintf('Identifier "%s" is not defined in container.', $id));
2929
}
3030
return $this->container[$id];
@@ -38,4 +38,4 @@ public function has($id)
3838
{
3939
return isset($this->container[$id]);
4040
}
41-
}
41+
}

0 commit comments

Comments
 (0)