Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

"newLine" Bug in MethodGenerator class #111

Open
finalJustize opened this issue Jun 28, 2017 · 2 comments
Open

"newLine" Bug in MethodGenerator class #111

finalJustize opened this issue Jun 28, 2017 · 2 comments

Comments

@finalJustize
Copy link

The static function {{Zend\Code\Generator\MethodGenerator::clearBodyIndention}} fails on Windows 10, php 7.1. in line 83: $lines = explode(PHP_EOL, $body);
$body does not contain any PHP_EOL (\n\r) characters, no matter what line ending encoding the source content had before.
works well on Linux, OSX.

quick fix:
change line 83 to
$lines = explode("\n", $body);

@Ocramius
Copy link
Member

Ocramius commented Jun 29, 2017 via email

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at laminas/laminas-code#13.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants