diff --git a/src/Mvc/Model/Blameable/BlameAt.php b/src/Mvc/Model/Blameable/BlameAt.php index 4660c1ea..db33388a 100644 --- a/src/Mvc/Model/Blameable/BlameAt.php +++ b/src/Mvc/Model/Blameable/BlameAt.php @@ -13,10 +13,10 @@ trait BlameAt { - public function getDateCallback(...$args): \Closure + public function getDateCallback(string $format, ...$args): \Closure { - return function () use ($args) { - return date(...$args); + return function () use ($format, $args) { + return date($format, ...$args); }; } } diff --git a/src/Mvc/Model/Blameable/Deleted.php b/src/Mvc/Model/Blameable/Deleted.php index cd38468b..c249e7b2 100644 --- a/src/Mvc/Model/Blameable/Deleted.php +++ b/src/Mvc/Model/Blameable/Deleted.php @@ -26,6 +26,7 @@ trait Deleted use Identity; use Snapshot; use SoftDelete; + use BlameAt; /** * Initializing Deleted diff --git a/src/Mvc/Model/Blameable/Restored.php b/src/Mvc/Model/Blameable/Restored.php index a8477cbf..35416583 100644 --- a/src/Mvc/Model/Blameable/Restored.php +++ b/src/Mvc/Model/Blameable/Restored.php @@ -26,6 +26,7 @@ trait Restored use Identity; use Snapshot; use SoftDelete; + use BlameAt; /** * Initializing Restored diff --git a/src/Mvc/Model/Blameable/Updated.php b/src/Mvc/Model/Blameable/Updated.php index c5cf45b3..d1e899d0 100644 --- a/src/Mvc/Model/Blameable/Updated.php +++ b/src/Mvc/Model/Blameable/Updated.php @@ -27,6 +27,7 @@ trait Updated use Identity; use Snapshot; use SoftDelete; + use BlameAt; /** * Initializing Updated