The reason for this error is the incorrect line endings (CR) inside the file. The CodeSniffer doesn't reconized this as line endings and calculate the properties of the tokens wrong. (interprets the whole file as one line)

Anyway, I found this error after I rewriting the sniff. This issue is fixed and I added some usefull informations in the error warning.