Skip to content

Commit

Permalink
Use cached property
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Dec 26, 2023
1 parent be2956d commit 7db26d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fields/Properties/WithId.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ trait WithId
{
protected function idProperty(): string
{
return "{$this->id}-field-{$this->handle()}";
return "{$this->id}-field-{$this->handle}";
}
}
2 changes: 1 addition & 1 deletion src/Fields/Properties/WithKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ trait WithKey
{
protected function keyProperty(): string
{
return "fields.{$this->handle()}.value";
return "fields.{$this->handle}.value";
}
}

0 comments on commit 7db26d3

Please sign in to comment.