mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: implement Stringable
To fix PHPStan errors.
This commit is contained in:
parent
0337ce37a1
commit
c1ec70f2b4
@ -14,6 +14,7 @@ declare(strict_types=1);
|
||||
namespace CodeIgniter\I18n;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use Stringable;
|
||||
|
||||
/**
|
||||
* A localized date/time package inspired
|
||||
@ -40,7 +41,7 @@ use DateTimeImmutable;
|
||||
*
|
||||
* @see \CodeIgniter\I18n\TimeTest
|
||||
*/
|
||||
class Time extends DateTimeImmutable
|
||||
class Time extends DateTimeImmutable implements Stringable
|
||||
{
|
||||
use TimeTrait;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user