We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d73fbc6 + a649ab4 commit b2a5029Copy full SHA for b2a5029
1 file changed
src/Framework/Container/PimpleContainer.php
@@ -24,7 +24,7 @@ public function __construct(Container $container)
24
*/
25
public function get($id)
26
{
27
- if (!isset($this->container[$id])) {
+ if (!$this->has($id)) {
28
throw new NotFoundException(sprintf('Identifier "%s" is not defined in container.', $id));
29
}
30
return $this->container[$id];
@@ -38,4 +38,4 @@ public function has($id)
38
39
return isset($this->container[$id]);
40
41
-}
+}
0 commit comments