Skip to content

Commit 0117887

Browse files
author
Anthony Regeda
committed
fixed Fatal error: Cannot access self:: when no class scope is active
1 parent 6eb1ec4 commit 0117887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Castel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function extend($id, Closure $callable)
7474
}
7575
$parent = $this->values[$id];
7676
$this->values[$id] = function ($c) use ($callable, $parent) {
77-
return $callable(self::fabricate($parent, $c), $c);
77+
return $callable(Castel::fabricate($parent, $c), $c);
7878
};
7979
if (property_exists($this, $id)) {
8080
$this->$id = $callable($this->$id, $this);

0 commit comments

Comments
 (0)