Skip to content

Commit

Permalink
Merge branch 'publications-feature' into refactor-the-MakePublication…
Browse files Browse the repository at this point in the history
…Command-class
  • Loading branch information
caendesilva committed Dec 18, 2022
2 parents a256668 + 802a375 commit 0ee0819
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ protected function handleCreate(): void
$this->save($output);
}

protected function handleMissingCanonicalField(string $canonicalFieldName): string
protected function handleMissingCanonicalField(string $canonicalFieldName): PublicationFieldType
{
if (str_starts_with($canonicalFieldName, '__')) {
return $canonicalFieldName;
return new PublicationFieldType('text', $canonicalFieldName, '0', '0');
}

return throw new RuntimeException(
Expand Down

0 comments on commit 0ee0819

Please sign in to comment.