Skip to content

Commit 59e8d56

Browse files
committed
use DateTimeInterface type
1 parent 6bd0c55 commit 59e8d56

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/system/Models/UpdateModelTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use CodeIgniter\Entity\Entity;
2020
use CodeIgniter\Exceptions\InvalidArgumentException;
2121
use Config\Database;
22+
use DateTimeInterface;
2223
use PHPUnit\Framework\Attributes\DataProvider;
2324
use PHPUnit\Framework\Attributes\Group;
2425
use stdClass;
@@ -213,8 +214,8 @@ public function testUpdateBatchWithEntity(): void
213214
protected string $email;
214215
protected string $country;
215216
protected bool $deleted;
216-
protected int $created_at;
217-
protected int $updated_at;
217+
protected DateTimeInterface $created_at;
218+
protected DateTimeInterface $updated_at;
218219

219220
/**
220221
* @var array{'datamap': array{}, 'dates': array{string, string, string}, 'casts': array{}}
@@ -236,8 +237,8 @@ public function testUpdateBatchWithEntity(): void
236237
protected string $email;
237238
protected string $country;
238239
protected bool $deleted;
239-
protected int $created_at;
240-
protected int $updated_at;
240+
protected DateTimeInterface $created_at;
241+
protected DateTimeInterface $updated_at;
241242

242243
/**
243244
* @var array{'datamap': array{}, 'dates': array{string, string, string}, 'casts': array{}}
@@ -412,8 +413,8 @@ public function testUpdateWithEntityNoAllowedFields(): void
412413
protected string $email;
413414
protected string $country;
414415
protected bool $deleted;
415-
protected int $created_at;
416-
protected int $updated_at;
416+
protected DateTimeInterface $created_at;
417+
protected DateTimeInterface $updated_at;
417418

418419
/**
419420
* @var array{'datamap': array{}, 'dates': array{string, string, string}, 'casts': array{}}

0 commit comments

Comments
 (0)