Skip to content

Commit

Permalink
fix code sniffing
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Aug 9, 2023
1 parent eb9ade2 commit de55f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mvc/Model/Blameable/BlameAt.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

trait BlameAt
{
public function getDateCallback(string $format, ...$args): \Closure
public function getDateCallback(string $format, ?int $timestamp): \Closure
{
return function () use ($format, $args) {
return date($format, ...$args);
return function () use ($format, $timestamp) {
return isset($timestamp)? date($format, $timestamp) : date($format);
};
}
}

0 comments on commit de55f67

Please sign in to comment.