Skip to content

Commit

Permalink
Allow to set a null template (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Jul 17, 2020
1 parent 7e85569 commit 43b306d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Admin/BaseFieldDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ abstract class BaseFieldDescription implements FieldDescriptionInterface
protected $parentAssociationMappings = [];

/**
* @var string the template name
* @var string|null the template name
*/
protected $template;

Expand Down Expand Up @@ -202,7 +202,7 @@ public function getOptions(): array
return $this->options;
}

public function setTemplate(string $template): void
public function setTemplate(?string $template): void
{
$this->template = $template;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/FieldDescriptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getOptions(): array;
/**
* Sets the template used to render the field.
*/
public function setTemplate(string $template): void;
public function setTemplate(?string $template): void;

/**
* Returns the template name.
Expand Down

0 comments on commit 43b306d

Please sign in to comment.