Closed
Description
In WordPress's JSHint config there is an error that gets raised when you try doing this:
x = new Thing
Missing '()' invoking a constructor.
This is likewise a coding convention in WordPress's PHP to always use the parentheses when constructing a class, however this is currently not getting enforced by PHPCS. I actually haven't been able to find an existing sniff that checks for that issue, but it seems like something that should be in Squiz
.
Metadata
Metadata
Assignees
Labels
No labels