Skip to content

Commit bbe068d

Browse files
committed
@author is actually ok
1 parent 43497d2 commit bbe068d

4 files changed

+3
-5
lines changed

Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class ClassAndInterfacePHPDocFormattingSniff implements Sniff
2222
/**
2323
* @var string[] List of tags that can not be used in comments
2424
*/
25-
private $forbiddenTags = [
26-
'@author',
25+
public $forbiddenTags = [
2726
'@category',
2827
'@package',
2928
'@subpackage'

Magento2/Tests/Commenting/ClassAndInterfacePHPDocFormattingUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class EmptyHandler
5959
*
6060
* @api is ok here
6161
* @deprecated can be used in this context
62-
* @author must not be mentioned
62+
* @author is actually ok
6363
* @category is irrelevant
6464
* @package is not ment to be used
6565
* @subpackage does not belong here

Magento2/Tests/Commenting/ClassAndInterfacePHPDocFormattingUnitTest.2.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface EmptyHandler
5959
*
6060
* @api is ok here
6161
* @deprecated can be used in this context
62-
* @author must not be mentioned
62+
* @author is actually ok
6363
* @category is irrelevant
6464
* @package is not ment to be used
6565
* @subpackage does not belong here

Magento2/Tests/Commenting/ClassAndInterfacePHPDocFormattingUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function getWarningList($testFile = '')
3232
35 => 1,
3333
44 => 1,
3434
52 => 1,
35-
62 => 1,
3635
63 => 1,
3736
64 => 1,
3837
65 => 1,

0 commit comments

Comments
 (0)