3.6.1
- PHPCS annotations can now be specified using hash-style comments
- Previously, only slash-style and block-style comments could be used to do things like disable errors
- Thanks to Juliette Reinders Folmer for the patch
- Fixed an issue where some sniffs would not run on PHP files that only used the short echo tag
- The following sniffs were affected:
Generic.Files.ExecutableFileGeneric.Files.LowercasedFilenameGeneric.Files.LineEndingsGeneric.Files.EndFileNewlineGeneric.Files.EndFileNoNewlineGeneric.PHP.ClosingPHPTagGeneric.PHP.SyntaxGeneric.VersionControl.GitMergeConflictGeneric.WhiteSpace.DisallowSpaceIndentGeneric.WhiteSpace.DisallowTabIndent
- Thanks to Juliette Reinders Folmer for the patch
- The following sniffs were affected:
- The new PHP 8.1 tokenisation for ampersands has been reverted to use the existing PHP_CodeSniffer method