diff --git a/tests/Stubs/ActiveRecord/Category.php b/tests/Stubs/ActiveRecord/Category.php index 49e4c1561..bc85de046 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; + protected int|null $id = null; protected string $name; public function getTableName(): string diff --git a/tests/Stubs/ActiveRecord/CustomerClosureField.php b/tests/Stubs/ActiveRecord/CustomerClosureField.php index 984766321..5acc77db1 100644 --- a/tests/Stubs/ActiveRecord/CustomerClosureField.php +++ b/tests/Stubs/ActiveRecord/CustomerClosureField.php @@ -16,7 +16,7 @@ final class CustomerClosureField extends ActiveRecord protected string $email; protected string $address; protected int $status; - protected int|null $profile_id; + protected int|null $profile_id = null; public function getTableName(): string { diff --git a/tests/Stubs/ActiveRecord/CustomerForArrayable.php b/tests/Stubs/ActiveRecord/CustomerForArrayable.php index 3a8c32fe0..ea5e0e24c 100644 --- a/tests/Stubs/ActiveRecord/CustomerForArrayable.php +++ b/tests/Stubs/ActiveRecord/CustomerForArrayable.php @@ -20,7 +20,7 @@ class CustomerForArrayable extends ActiveRecord protected string $email; protected string $address; protected int $status; - protected int|null $profile_id; + protected int|null $profile_id = null; public function getTableName(): string { diff --git a/tests/Stubs/ActiveRecord/CustomerWithAlias.php b/tests/Stubs/ActiveRecord/CustomerWithAlias.php index 4ba1fa18e..436dd45de 100644 --- a/tests/Stubs/ActiveRecord/CustomerWithAlias.php +++ b/tests/Stubs/ActiveRecord/CustomerWithAlias.php @@ -24,7 +24,7 @@ final class CustomerWithAlias extends ActiveRecord public string $email; public string $address; public int $status; - public int|null $profile_id; + public int|null $profile_id = null; public function getTableName(): string { diff --git a/tests/Stubs/ActiveRecord/Order.php b/tests/Stubs/ActiveRecord/Order.php index 8d2eb6763..3078d6589 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; + protected int|null $id = null; protected int $customer_id; protected int $created_at; protected float $total; diff --git a/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php b/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php index 24c07fc84..a0b4c96a4 100644 --- a/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php +++ b/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php @@ -16,8 +16,8 @@ */ final class OrderItemWithNullFK extends ActiveRecord { - protected int|null $order_id; - protected int|null $item_id; + protected int|null $order_id = null; + protected int|null $item_id = null; protected int $quantity; protected float $subtotal; diff --git a/tests/Stubs/ActiveRecord/OrderWithNullFK.php b/tests/Stubs/ActiveRecord/OrderWithNullFK.php index acd10dd97..9d0cb7aa1 100644 --- a/tests/Stubs/ActiveRecord/OrderWithNullFK.php +++ b/tests/Stubs/ActiveRecord/OrderWithNullFK.php @@ -17,7 +17,7 @@ final class OrderWithNullFK extends ActiveRecord { protected int $id; - protected int|null $customer_id; + protected int|null $customer_id = null; protected int $created_at; protected float $total; diff --git a/tests/Stubs/ActiveRecord/Type.php b/tests/Stubs/ActiveRecord/Type.php index d2cb1ccf4..8b4a8794d 100644 --- a/tests/Stubs/ActiveRecord/Type.php +++ b/tests/Stubs/ActiveRecord/Type.php @@ -33,7 +33,7 @@ final class Type extends ActiveRecord public int|null $smallint_col = 1; public string $char_col; public string|null $char_col2 = 'something'; - public string|null $char_col3; + public string|null $char_col3 = null; public float $float_col; public float|null $float_col2 = 1.23; public mixed $blob_col;