diff --git a/src/Castel.php b/src/Castel.php index 78e3c8a..cab1a50 100644 --- a/src/Castel.php +++ b/src/Castel.php @@ -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);