Skip to content

Commit 6caae16

Browse files
committed
PSR12/CompoundNamespaceDepth: test tweak
Properties overruled in tests should always be reset as `// phpcs:set` is not limited to the current file.
1 parent e5cbc94 commit 6caae16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ use Vendor\Package\SomeNamespace\{
3030
SubnamespaceOne\ClassB,
3131
ClassZ,
3232
};
33+
34+
// Reset the property to its default value.
35+
// phpcs:set PSR12.Namespaces.CompoundNamespaceDepth maxDepth 2

0 commit comments

Comments
 (0)