Skip to content

[HttpKernel] Fix bug with whitespace in Kernel::stripComments() #39220

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

Merged
merged 1 commit into from
Dec 5, 2020

Conversation

ausi
Copy link
Contributor

@ausi ausi commented Nov 29, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Kernel::stripComments() removes significant whitespace in some cases.

I noticed this in one of the generated classes, the code <?php include_once \dirname(__DIR__).'/file.php'; got replaced with <?php include_once\dirname(__DIR__).'/file.php'; which is a syntax error.

@ausi ausi force-pushed the fix/strip-comments-whitespace branch from 963a48d to 8d368e1 Compare November 29, 2020 21:29
@carsonbot carsonbot changed the title Fix bug with whitespace in Kernel::stripComments() [HttpKernel] Fix bug with whitespace in Kernel::stripComments() Nov 29, 2020
@fabpot
Copy link
Member

fabpot commented Dec 5, 2020

Thank you @ausi.

@fabpot fabpot merged commit cdb1883 into symfony:4.4 Dec 5, 2020
This was referenced Dec 18, 2020
@fabpot fabpot mentioned this pull request Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants