[PEAR-BUG] Bug #20374 [Opn->Dup]: PHP closing tag check in SuperfluousWhitespace Sniff doesn't detect newline

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=20374&edit=1

 ID:               20374
 Updated by:       [email protected]
 Reported By:      pearbugs at kennel17 dot co dot uk
 Summary:          PHP closing tag check in SuperfluousWhitespace Sniff
                    doesn't detect newline
-Status:           Open
+Status:           Duplicate
 Type:             Bug
 Package:          PHP_CodeSniffer
 Package Version:  2.0.0RC1
 PHP Version:      Irrelevant
 Roadmap Versions: 
 New Comment:

-Status: Open
+Status: Duplicate
Submitted twice. Correct report is bug #20375


Previous Comments:
------------------------------------------------------------------------

[2014-08-24 09:06:22] #9cba06628be9d290d70

Description:
------------
Squiz_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff does not detect a
single newline at the end of the file.  This is because the newline is
included in the token itself, and not as an additional token following
it, and the Sniff does not check for this possibility.

Test script:
---------------
"<?php
//stuff
?>
"

Expected result:
----------------
ERROR: Additional whitespace found at end of file

Actual result:
--------------
No error reported.

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20374&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.