[TYPO3-core] CGL proposal: Dropping the closing PHP tag
typo3ml at andreaswolf.info
Fri Nov 2 13:09:42 CET 2012
-----BEGIN PGP SIGNED MESSAGE-----
Am 22.10.2012 13:51, schrieb Michael Stucki:
> That means, you only run into problems if you have more than one
> newline after the closing tag. Why is this a problem? I don't know
> of any editor who would add more than one trailing newline to a
> file. Do you?
no, the point is that the Jenkins rule complains about *any* new line
after the trailing PHP tag. Some editors (like my local vi) add them.
It won't hurt PHP-wise, but it does with Jenkins...
Apart from that, 1+ trailing newlines will lead to errors and such an
error is really hard to track IMHO, compared to how easy we could
avoid it by just dropping the closing tag.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the TYPO3-team-core