Skip to content

Commit

Permalink
Annotate enumerated string parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 17, 2024
1 parent 140e38b commit b6e07d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function add(MetadataElementContract|string $element): static
};
}

/** @param 'links'|'metadata'|'properties' $type */
protected function addElement(string $type, MetadataElementContract $element): static
{
$this->{$type}[$element->uniqueKey()] = $element;
Expand Down

0 comments on commit b6e07d4

Please sign in to comment.