Skip to content

Commit

Permalink
Squiz/ControlStructureSpacing: fix the enum test
Browse files Browse the repository at this point in the history
The test as-it-was, wasn't actually testing anything. As the sniff is about control structures, the `enum` needs to be nested in one before the test would fail without the fix,
  • Loading branch information
jrfnl authored and kukulich committed Feb 14, 2022
1 parent aefca5e commit aadc30c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ $expr = match( $foo ){
};
echo $expr;

enum SomeEnum
{
if($true) {

enum SomeEnum {}

}
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ $expr = match($foo){

echo $expr;

enum SomeEnum
{
if($true) {

enum SomeEnum {}

}

0 comments on commit aadc30c

Please sign in to comment.