mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
cs fixes
This commit is contained in:
parent
35acef634b
commit
63c0669d7e
@ -60,8 +60,10 @@ parameters:
|
||||
# empty parent interface, disable for now
|
||||
- packages/DeprecationExtractor/src/Deprecation/ClassMethodDeprecation.php
|
||||
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff:
|
||||
# false positive
|
||||
# false positive - @todo fix
|
||||
- packages/NodeTypeResolver/src/NodeVisitor/TypeResolver.php
|
||||
# false positive - fixed in master
|
||||
- src/NodeAnalyzer/ClassConstAnalyzer.php
|
||||
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff:
|
||||
# covariant types
|
||||
- */packages/NodeValueResolver/src/PerNodeValueResolver/*ValueResolver.php
|
||||
|
@ -34,7 +34,7 @@ final class ClassConstAnalyzer
|
||||
return $classFullyQualifiedName->toString() === $className;
|
||||
}
|
||||
|
||||
// e.g. $form::FILLED
|
||||
// e.g. "$form::FILLED"
|
||||
$nodeClassName = $classConstFetchNode->class->getAttribute(Attribute::CLASS_NAME);
|
||||
|
||||
return $nodeClassName === $className;
|
||||
|
Loading…
x
Reference in New Issue
Block a user