mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-03 14:11:42 +00:00
59 lines
5.6 KiB
Plaintext
59 lines
5.6 KiB
Plaintext
parameters:
|
|
ignoreErrors:
|
|
# stricter return type of parent
|
|
- '#PHPDoc tag @return with type mixed is not subtype of native type (int|string)#'
|
|
|
|
# property overriden
|
|
- '#Rector\\NodeTraverser\\(Cloning|Shutdown)NodeTraverser::__construct\(\) does not call parent constructor from PhpParser\\NodeTraverser#'
|
|
|
|
# false positive, has annotation type above (@todo recheck for possible ignored positives)
|
|
- '#Access to an undefined property PhpParser\\Node::\$args#'
|
|
- '#Access to an undefined property PhpParser\\Node::\$var#'
|
|
- '#Call to an undefined method PhpParser\\Node::toString\(\)#'
|
|
- '#Access to an undefined property PhpParser\\Node::\$name#' # 13 off
|
|
- '#Parameter \#1 \$node of method Rector\\NodeAnalyzer\\ClassConstAnalyzer::isNames\(\) expects PhpParser\\Node\\Expr\\ClassConstFetch, PhpParser\\Node given#'
|
|
- '#Parameter \#1 \$classNode of method Rector\\NodeTypeResolver\\TypesExtractor\\ConstructorPropertyTypesExtractor::extractFromClassNode\(\) expects PhpParser\\Node\\Stmt\\Class_, PhpParser\\Node\\Stmt\\ClassLike given#'
|
|
|
|
# subtype
|
|
- '#Property PhpParser\\Node\\Param::\$type \(PhpParser\\Node\\Name|PhpParser\\Node\\NullableType\|string\|null\) does not accept PhpParser\\Node\\Identifier|PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType#'
|
|
|
|
|
|
# known values
|
|
- '#Method Rector\\Node\\NodeFactory::create(Null|False|True)Constant\(\) should return PhpParser\\Node\\Expr\\ConstFetch but returns PhpParser\\Node\\Expr#'
|
|
- '#Method Rector\\Node\\NodeFactory::createNamespace\(\) should return PhpParser\\Node\\Stmt\\Namespace_ but returns PhpParser\\Node#'
|
|
- '#Method Rector\\NodeValueResolver\\PerNodeValueResolver\\ArgValueResolver::resolve\(\) should return string\|null but returns bool\|string\|null#'
|
|
- '#Calling method toString\(\) on possibly null value of type PhpParser\\Node\\Name\\FullyQualified\|null#'
|
|
- '#Calling method toString\(\) on possibly null value of type PhpParser\\Node\\Name\|null#'
|
|
- '#Calling method getText\(\) on possibly null value of type PhpParser\\Comment\\Doc\|null#'
|
|
- '#Calling method getParentClassNames\(\) on possibly null value of type Rector\\BetterReflection\\Reflection\\ReflectionClass\|null#'
|
|
- '#Property PhpParser\\Node\\Expr\\MethodCall::$name \(PhpParser\\Node\\Expr|string\) does not accept PhpParser\\Node\\Identifier#'
|
|
- '#Argument of an invalid type array(?:<array>)\|null supplied for foreach, only iterables are supported#'
|
|
- '#Parameter \#2 \$name of class PhpParser\\Node\\Expr\\PropertyFetch constructor expects PhpParser\\Node\\Expr|string, PhpParser\\Node\\Identifier given#'
|
|
- '#Instanceof between PhpParser\\Node\\Expr\|string and PhpParser\\Node\\Identifier will always evaluate to false#'
|
|
- '#PHPDoc tag @param for parameter \$classLikeNode with type PhpParser\\Builder\\Trait_\|PhpParser\\Node\\Stmt\\Class_\|PhpParser\\Node\\Stmt#'
|
|
- '#Instanceof between string\|null and PhpParser\\Node\\Identifier will always evaluate to false#'
|
|
- '#Method Rector\\NodeTraverserQueue\\BetterNodeFinder::findFirstAncestorInstanceOf\(\) should return PhpParser\\Node\|null but returns object#'
|
|
- '#Access to an undefined property PhpParser\\Node\\Stmt\\(Class_|ClassLike)::\$namespacedName#'
|
|
- '#Property Rector\\NodeTypeResolver\\NodeVisitor\\NamespaceResolver::\$useNodes \(array<PhpParser\\Node\\Stmt\\Use_>\) does not accept array<PhpParser\\Node>#'
|
|
- '#Parameter \#1 \$classMethodNode of method Rector\\NodeTypeResolver\\TypesExtractor\\ConstructorPropertyTypesExtractor::extractPropertiesFromConstructorMethodNode\(\) expects PhpParser\\Node\\Stmt\\ClassMethod, PhpParser\\Node given#'
|
|
- '#Instanceof between PhpParser\\Node\\Expr\|string and PhpParser\\Node\\Name will always evaluate to false#'
|
|
- '#Method Rector\\BetterReflection\\Reflector\\SmartClassReflector::reflect\(\) should return Rector\\BetterReflection\\Reflection\\ReflectionClass\|null but returns Rector\\BetterReflection\\Reflection\\Reflection#'
|
|
|
|
# buggy
|
|
- '#Parameter \#1 \$classLikeNode of method Rector\\NodeAnalyzer\\ClassLikeAnalyzer::resolveExtendsTypes\(\) expects PhpParser\\Node\\Stmt\\Class_\|PhpParser\\Node\\Stmt\\Interface_, PhpParser\\Node\\Stmt\\ClassLike given#'
|
|
- '#Parameter \#1 \$functionLikeNode of method Rector\\NodeTypeResolver\\TypeContext::getFunctionReflection\(\) expects PhpParser\\Node\\Expr\\Closure\|PhpParser\\Node\\Stmt\\ClassMethod\|PhpParser\\Node\\Stmt\\Function_, PhpParser\\Node\\FunctionLike given#'
|
|
- '#Property Rector\\Rector\\AbstractRector::\$expressionsToPrepend(After|Before) \(iterable<array<PhpParser\\Node\\Stmt\\Expression>>&SplObjectStorage\) does not accept default value of type array#'
|
|
- '#Access to an undefined property PhpParser\\Node\\Param::\$var#'
|
|
- '#Access to an undefined property PhpParser\\Node\\Arg|PhpParser\\Node\\Expr\|PhpParser\\Node\\Param::\$value#'
|
|
- '#Call to an undefined method PhpParser\\BuilderFactory::args\(\)#'
|
|
- "#Casting to string something that's already string#"
|
|
- '#Call to an undefined method PhpParser\\Node\\Stmt\\UseUse::getAlias\(\)#'
|
|
- '#Call to an undefined method Rector\\Printer\\BetterStandardPrinter::printFormatPreserving\(\)#'
|
|
|
|
excludes_analyse:
|
|
# test files
|
|
- '*tests/Rector/Dynamic/MethodNameReplacerRector/wrong/*'
|
|
- '*tests/Rector/Dynamic/MethodNameReplacerRector/correct/*'
|
|
- '*packages/**/tests/**/**Source/**'
|
|
- '*packages/**/tests/**Source/**'
|