Permalink
Browse files

Update src/Ruler/Context.php

Update context constructor to set values using pimple constructor injection.
  • Loading branch information...
1 parent 7e36c8d commit b6eb2f68d426792a4e2db2af2c1ec0f78445b950 @calumbrodie calumbrodie committed Nov 25, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Ruler/Context.php
View
@@ -31,8 +31,6 @@ class Context extends \Pimple
*/
public function __construct(array $values = array())
{
- foreach ($values as $key => $val) {
- $this[$key] = $val;
- }
+ parent::__construct($values);
}
}

0 comments on commit b6eb2f6

Please sign in to comment.