Closed jrfnl closed 7 years ago
Tested it and it works as expected.
Thanks @grappler
On Mon, Dec 19, 2016 at 2:26 PM Ulrich Pogson notifications@github.com wrote:
Merged #99 https://github.com/WPTRT/WordPress-Coding-Standards/pull/99.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WPTRT/WordPress-Coding-Standards/pull/99#event-899184596, or mute the thread https://github.com/notifications/unsubscribe-auth/ABs6zgBcPaWK82uqZDBrVDF-8fxVLTxgks5rJuiBgaJpZM4LRIdE .
See https://github.com/WPTRT/WordPress-Coding-Standards/issues/83#issuecomment-268009879
@ernilambar Care to test with this branch ?
FYI: in this case the specific sniff referenced has a public property which determines whether the sniff should throw a warning or an error. The property defaults to
false
(=warning), so changing the property totrue
fixes this. This also changes the error code the sniff uses which is why - in this case - this is the more appropriate way to change the error type.