Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark authored and github-actions[bot] committed May 22, 2024
1 parent 97194cd commit 45802e7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/CustomerClosureField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/CustomerForArrayable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/CustomerWithAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/ActiveRecord/OrderItemWithNullFK.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/OrderWithNullFK.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ActiveRecord/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 45802e7

Please sign in to comment.