Skip to content

Commit 209d417

Browse files
committed
PHP 8.1: PEAR/ClassComment - Added support for enums
1 parent 6a32382 commit 209d417

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function register()
2727
T_CLASS,
2828
T_INTERFACE,
2929
T_TRAIT,
30+
T_ENUM,
3031
];
3132

3233
}//end register()

src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ trait Empty_Trait_Doc
120120
}//end trait
121121

122122

123+
/**
124+
*
125+
*
126+
*/
127+
enum Empty_Enum_Doc
128+
{
129+
130+
}//end enum
131+
132+
123133
/**
124134
* Sample class comment
125135
*

src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function getErrorList()
4444
96 => 5,
4545
106 => 5,
4646
116 => 5,
47+
126 => 5,
4748
];
4849

4950
}//end getErrorList()

0 commit comments

Comments
 (0)