I think this sniff rule is supposed to prevent old and discouraged PHP feature, but it also detects methods inside anonymous classes.