create($docComment); // Create the serializer that will reconstitute the DocBlock back to its original form. $serializer = new Serializer(0, '', true, null, null, PHP_EOL); // Reconstitution is performed by the `getDocComment()` method. $reconstitutedDocComment = $serializer->getDocComment($docblock);