Skip to content

Commit 1a79d73

Browse files
committed
add 2 more skips
1 parent 15ca3e8 commit 1a79d73

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Rules/Rector/AvoidFeatureSetAttributeInRectorRule.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ final class AvoidFeatureSetAttributeInRectorRule implements Rule
3232
/**
3333
* @var string[]
3434
*/
35-
private const ALLOWED_ATTRIBUTES = ['kind', 'origNode', 'comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos', 'rawValue', 'docLabel'];
35+
private const ALLOWED_ATTRIBUTES = [
36+
// php-parser keys
37+
'kind', 'origNode', 'comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos', 'rawValue', 'docLabel',
38+
// rector internal keys, designed to be changed and used by printer
39+
'wrapped_in_parentheses',
40+
'is_regular_pattern',
41+
];
3642

3743
public function getNodeType(): string
3844
{

0 commit comments

Comments
 (0)