Skip to content

Commit 681f2d6

Browse files
Update TimeTrait.php
revert change to TimeTrait::setTimeNow()
1 parent 1f43678 commit 681f2d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/I18n/TimeTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,11 @@ public function toDateTime()
330330
* @param DateTimeInterface|self|string|null $datetime
331331
* @param DateTimeZone|string|null $timezone
332332
*
333+
* @return void
334+
*
333335
* @throws Exception
334336
*/
335-
public static function setTestNow($datetime = null, $timezone = null, ?string $locale = null): void
337+
public static function setTestNow($datetime = null, $timezone = null, ?string $locale = null)
336338
{
337339
// Reset the test instance
338340
if ($datetime === null) {

0 commit comments

Comments
 (0)