Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing line breaks in DocBlockScanner::getLongDescription result. #177

Open
tamiroh opened this issue May 1, 2023 · 0 comments
Open

Missing line breaks in DocBlockScanner::getLongDescription result. #177

tamiroh opened this issue May 1, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@tamiroh
Copy link

tamiroh commented May 1, 2023

Bug Report

Q A
Version(s) 4.10.0

Summary

DocBlockScanner::getLongDescription does not include line breaks in the result. I could not determine whether this is a specification or a bug, but I report it as a bug for now.

Current behavior

As shown in the following code.

How to reproduce

$scanner = new Laminas\Code\Scanner\DocBlockScanner(<<<EOD
/**
 * This is a test class.
 *
 * Test class description. Test class description. Test
 * class description. Test class description. Test class description.
 * Test class description.
 */
EOD);

var_dump($scanner->getLongDescription());
// string(143) "Test class description. Test class description. Test class description. Test class description. Test class description. Test class description."

Expected behavior

string(143) "Test class description. Test class description. Test
class description. Test class description. Test class description.
Test class description."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant