Skip to content

Commit 37bc4e0

Browse files
jrfnlkukulich
authored andcommitted
PSR12/UseDeclaration: improve enum tests
Test more aspects of the sniff are applied correctly to enums.
1 parent 2632099 commit 37bc4e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ enum SomeEnum1
215215

216216
enum SomeEnum2
217217
{
218-
use FirstTrait;
218+
219+
use FirstTrait;
219220

220221
}

src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getErrorList()
4747
165 => 1,
4848
170 => 1,
4949
208 => 1,
50-
218 => 1,
50+
219 => 3,
5151
];
5252

5353
}//end getErrorList()

0 commit comments

Comments
 (0)