diff --git a/tests/ActiveRecordTest.php b/tests/ActiveRecordTest.php index f61257495..53fd467e7 100644 --- a/tests/ActiveRecordTest.php +++ b/tests/ActiveRecordTest.php @@ -882,8 +882,11 @@ public function testGetDirtyAttributesOnNewRecord(): void $this->assertSame( [ + 'name' => null, + 'address' => null, 'status' => 0, 'bool_status' => false, + 'profile_id' => null, ], $customer->getDirtyAttributes() ); @@ -901,6 +904,7 @@ public function testGetDirtyAttributesOnNewRecord(): void 'address' => null, 'status' => 0, 'bool_status' => false, + 'profile_id' => null, ], $customer->getDirtyAttributes() ); diff --git a/tests/Stubs/ActiveRecord/Category.php b/tests/Stubs/ActiveRecord/Category.php index bc85de046..49e4c1561 100644 --- a/tests/Stubs/ActiveRecord/Category.php +++ b/tests/Stubs/ActiveRecord/Category.php @@ -16,7 +16,7 @@ */ final class Category extends ActiveRecord { - protected int|null $id = null; + protected int|null $id; protected string $name; public function getTableName(): string diff --git a/tests/Stubs/ActiveRecord/Order.php b/tests/Stubs/ActiveRecord/Order.php index 3078d6589..8d2eb6763 100644 --- a/tests/Stubs/ActiveRecord/Order.php +++ b/tests/Stubs/ActiveRecord/Order.php @@ -20,7 +20,7 @@ class Order extends ActiveRecord { public const TABLE_NAME = 'order'; - protected int|null $id = null; + protected int|null $id; protected int $customer_id; protected int $created_at; protected float $total;