Skip to content

Commit

Permalink
fixed Fatal error: Cannot access self:: when no class scope is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Regeda committed Jul 30, 2014
1 parent 6eb1ec4 commit 0117887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Castel.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function extend($id, Closure $callable)
}
$parent = $this->values[$id];
$this->values[$id] = function ($c) use ($callable, $parent) {
return $callable(self::fabricate($parent, $c), $c);
return $callable(Castel::fabricate($parent, $c), $c);
};
if (property_exists($this, $id)) {
$this->$id = $callable($this->$id, $this);
Expand Down

0 comments on commit 0117887

Please sign in to comment.