Permalink
Browse files

use of keys prop for isset() check of services/values

  • Loading branch information...
1 parent 30651c5 commit e2b05ce6ae32873662f6df09206cf4f69aad60e9 @raphahardt raphahardt committed Mar 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Pimple.php
View
@@ -122,7 +122,7 @@ public function offsetGet($id)
*/
public function offsetExists($id)
{
- return array_key_exists($id, $this->values);
+ return isset($this->keys[$id]);
}
/**

0 comments on commit e2b05ce

Please sign in to comment.