Documentation

StableCommentWhitespaceTest.php

Tests the comment tokenization.

Comment have their own tokenization in PHPCS anyhow, including the PHPCS annotations. However, as of PHP 8, the PHP native comment tokenization has changed. Natively T_COMMENT tokens will no longer include a trailing newline. PHPCS "forward-fills" the original tokenization to PHP 8. This test file safeguards that.

Tags
author

Juliette Reinders Folmer phpcs_nospam@adviesenzo.nl

copyright

2020 Squiz Pty Ltd (ABN 77 084 670 600)

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Interfaces, Classes and Traits

StableCommentWhitespaceTest

Search results