4.0 | Wiki/Advanced Usage: update for change in PHP open tag tokenization #32
+91
−81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update the docs for change PHPCSStandards/PHP_CodeSniffer#1015
Notes:
This is in line with how these output samples were previously presented in the wiki.
annotated-ruleset/debug-output.php
file which can be used to generate these output samples to thebuild/wiki-code-samples
directory, at this time, we cannot yet selectively only retrieve the desired output for this documentation, so we cannot automate updating these output blocks.This will hopefully change in the foreseeable future once PHPCSStandards/PHP_CodeSniffer 1030 has been implemented, though as there is also a textual part which refers to line numbers in the output blocks, manually updating these output blocks may still be the more stable way.
For the "Verbose Token Processing Output" I've added a comment to document how to retrieve the desired output to update this output block.
I've used the
PEAR
standard, not thePSR12
standard to keep the output within reasonable bounds.