You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WPCS already contained a ClassInstantiation sniff, so after seeing #2047 I've run the PSR12 version over the WPCS unit tests for the sniff to see if we could switch over at some point.
The test run identified a number of bugs in the PSR12 sniffs:
Test cases:
$a = new self::$transport[$cap_string];
$renderer = new$this->inline_diff_renderer;
$a = new${$varHoldingClassName};