This commit is contained in:
TomasVotruba 2017-10-06 11:28:04 +02:00
parent 35acef634b
commit 63c0669d7e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;