Skip to content

Commit e6be5f5

Browse files
committed
refactor: remove setTimestamp() because it only returns parent method
1 parent 6185dbe commit e6be5f5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

system/I18n/TimeTrait.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -685,21 +685,6 @@ public function setTimezone($timezone)
685685
return static::createFromInstance($this->toDateTime()->setTimezone($timezone), $this->locale);
686686
}
687687

688-
/**
689-
* Returns a new instance with the date set to the new timestamp.
690-
*
691-
* @param int $timestamp
692-
*
693-
* @return static
694-
*
695-
* @throws Exception
696-
*/
697-
#[ReturnTypeWillChange]
698-
public function setTimestamp($timestamp)
699-
{
700-
return parent::setTimestamp($timestamp);
701-
}
702-
703688
// --------------------------------------------------------------------
704689
// Add/Subtract
705690
// --------------------------------------------------------------------

0 commit comments

Comments
 (0)