Fix rendering a description when it contains escaped characters and no tags

This commit is contained in:
Aydin Hassan
2023-10-11 14:57:53 +02:00
parent 7b21721772
commit ae20798fde
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class Description
public function render(?Formatter $formatter = null): string
{
if ($this->tags === []) {
return $this->bodyTemplate;
return vsprintf($this->bodyTemplate, []);
}
if ($formatter === null) {