Skip to content

Commit

Permalink
Discard morphKey default value (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Jan 19, 2022
1 parent 9a023a2 commit 6826b61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Annotation/Relation/Morphed/BelongsToMorphed.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
protected bool $nullable = true,
protected array|string|null $innerKey = null,
protected array|string|null $outerKey = null,
protected string $morphKey = '{relationName}_role',
protected ?string $morphKey = null,
protected int $morphKeyLength = 32,
protected bool $indexCreate = true,
#[ExpectedValues(values: ['lazy', 'eager'])]
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Relation/Morphed/MorphedHasMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(
protected bool $nullable = false,
protected array|string|null $innerKey = null,
protected array|string|null $outerKey = null,
protected string $morphKey = '{relationName}_role',
protected ?string $morphKey = null,
protected int $morphKeyLength = 32,
protected array $where = [],
protected bool $indexCreate = true,
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Relation/Morphed/MorphedHasOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
protected bool $nullable = false,
protected array|string|null $innerKey = null,
protected array|string|null $outerKey = null,
protected string $morphKey = '{relationName}_role',
protected ?string $morphKey = null,
protected int $morphKeyLength = 32,
protected bool $indexCreate = true,
#[ExpectedValues(values: ['lazy', 'eager'])]
Expand Down

0 comments on commit 6826b61

Please sign in to comment.