From b396e6d4e51cdfda6385472fecc892ce1fb1cfba Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 13 Jun 2023 21:47:18 +0200 Subject: [PATCH] Improve --- src/PhpDoc/MethodDoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpDoc/MethodDoc.php b/src/PhpDoc/MethodDoc.php index f9f88b4..cfc5b79 100644 --- a/src/PhpDoc/MethodDoc.php +++ b/src/PhpDoc/MethodDoc.php @@ -152,7 +152,7 @@ class MethodDoc extends GenericDoc $sig .= "\n\n"; $sig .= $this->title; $sig .= "\n"; - $sig .= $this->description; + $sig .= str_replace("\n", " \n", $this->description); $sig .= "\n"; if ($this->psalmParams || $this->params) { $sig .= "\nParameters:\n\n";