Skip to content

Commit

Permalink
refactor: implement Stringable
Browse files Browse the repository at this point in the history
To fix PHPStan errors.
  • Loading branch information
kenjis committed Apr 11, 2024
1 parent 0337ce3 commit c1ec70f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/I18n/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace CodeIgniter\I18n;

use DateTimeImmutable;
use Stringable;

/**
* A localized date/time package inspired
Expand All @@ -40,7 +41,7 @@
*
* @see \CodeIgniter\I18n\TimeTest
*/
class Time extends DateTimeImmutable
class Time extends DateTimeImmutable implements Stringable
{
use TimeTrait;
}

0 comments on commit c1ec70f

Please sign in to comment.