Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Database/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ public function reloadRelations($relationName = null)
/**
* Extend this object properties upon construction.
*/
public static function extend(Closure $callback)
public static function extend(callable $callback, bool $after = false)
{
self::extendableExtendCallback($callback);
self::extendableExtendCallback($callback, $after);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/Extendable.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public static function __callStatic($name, $params)
return self::extendableCallStatic($name, $params);
}

public static function extend(callable $callback)
public static function extend(callable $callback, bool $after = false)
{
self::extendableExtendCallback($callback);
self::extendableExtendCallback($callback, $after);
}
}
Loading