Skip to content

Commit

Permalink
Merge pull request #194 from PHPCSStandards/universal/disallowshortli…
Browse files Browse the repository at this point in the history
…stsyntax-minor-simplification

Universal/DisallowShortListSyntax: minor simplification
  • Loading branch information
jrfnl authored Dec 29, 2022
2 parents 5aef381 + f714293 commit 0ce07ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Universal/Sniffs/Lists/DisallowShortListSyntaxSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ final class DisallowShortListSyntaxSniff implements Sniff
*/
public function register()
{
$targets = Collections::shortArrayListOpenTokensBC();
$targets[\T_LIST] = \T_LIST; // Only for recording metrics.

return $targets;
return Collections::listOpenTokensBC();
}

/**
Expand Down

0 comments on commit 0ce07ff

Please sign in to comment.