2017-11-06 10:40:43 +00:00
parameters:
ignoreErrors:
2018-03-28 12:04:03 +00:00
# the # after each ignored error is the number of occurrences
2017-11-06 11:48:43 +00:00
# false positive, has annotation type above (@todo recheck for possible ignored positives)
2018-05-12 16:48:36 +00:00
- '#Access to an undefined property PhpParser\\Node::\$name#' # 11
2018-03-19 17:39:58 +00:00
- '#Parameter \#1 \$node of method Rector\\NodeAnalyzer\\ClassConstAnalyzer::isNames\(\) expects PhpParser\\Node\\Expr\\ClassConstFetch, PhpParser\\Node given#' # 1
2018-03-28 01:48:07 +00:00
- '#Parameter \#1 \$classNode of method Rector\\NodeTypeResolver\\TypesExtractor\\ConstructorPropertyTypesExtractor::extractFromClassNode\(\) expects PhpParser\\Node\\Stmt\\Class_, PhpParser\\Node\\Stmt\\ClassLike given#' # 1
2017-11-06 13:15:35 +00:00
2017-12-10 00:13:25 +00:00
# subtype
2018-05-12 16:48:36 +00:00
- '#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#' # 3
2017-12-10 00:13:25 +00:00
2018-04-02 10:32:30 +00:00
# false positive
2018-05-12 16:48:36 +00:00
- '#Parameter \#1 \$kernelClass of method Rector\\Bridge\\Symfony\\SymfonyKernelParameterGuard::(ensureKernelClassExists|ensureIsKernelInstance)\(\) expects string, string\|null given#' # 2
2018-04-02 10:32:30 +00:00
2018-04-08 22:08:05 +00:00
# intentionally incorrect - part of the test
2018-05-12 16:48:36 +00:00
- '#Parameter \#2 \$codeSamples of class Rector\\RectorDefinition\\RectorDefinition constructor expects array<Rector\\RectorDefinition\\CodeSample>, array<int, stdClass> given#' # 1
2018-04-08 22:08:05 +00:00
2017-11-06 12:58:51 +00:00
# known values
2018-05-12 16:48:36 +00:00
- '#Argument of an invalid type array<PhpParser\\Node>\|null supplied for foreach, only iterables are supported#' # 1
- '#Access to an undefined property PHPStan\\PhpDocParser\\Ast\\Node::\$name#' # 2
2018-05-12 19:57:50 +00:00
- '#Calling method getName\(\) on possibly null value of type Rector\\Builder\\Class_\\VariableInfo\|null#' # 1
2018-04-02 13:17:12 +00:00
2018-05-12 18:11:10 +00:00
- '#Method Rector\\Node\\NodeFactory::createNullConstant\(\) should return PhpParser\\Node\\Expr\\ConstFetch but returns PhpParser\\Node\\Expr#' # 1
2018-01-18 21:10:39 +00:00
- '#Method Rector\\Node\\NodeFactory::createNamespace\(\) should return PhpParser\\Node\\Stmt\\Namespace_ but returns PhpParser\\Node#' # 1
2018-03-28 12:06:21 +00:00
- '#Calling method getText\(\) on possibly null value of type PhpParser\\Comment\\Doc\|null#' # 3
2018-05-12 18:11:10 +00:00
- '#Instanceof between PhpParser\\Node\\Expr\|string and PhpParser\\Node\\(Identifier|Name) will always evaluate to false#' # 9
2018-01-18 21:10:39 +00:00
- '#Method Rector\\NodeTraverserQueue\\BetterNodeFinder::findFirstAncestorInstanceOf\(\) should return PhpParser\\Node\|null but returns object#' # 1
2018-05-12 18:11:10 +00:00
- '#Access to an undefined property PhpParser\\Node\\Stmt\\(Class_|ClassLike)::\$namespacedName#' # 3
2018-01-18 21:10:39 +00:00
- '#Property Rector\\NodeTypeResolver\\NodeVisitor\\NamespaceResolver::\$useNodes \(array<PhpParser\\Node\\Stmt\\Use_>\) does not accept array<PhpParser\\Node>#' # 1
- '#Parameter \#1 \$classMethodNode of method Rector\\NodeTypeResolver\\TypesExtractor\\ConstructorPropertyTypesExtractor::extractPropertiesFromConstructorMethodNode\(\) expects PhpParser\\Node\\Stmt\\ClassMethod, PhpParser\\Node given#' # 1
2018-05-12 16:48:36 +00:00
- '#Parameter \#1 \$node of method Rector\\NodeTypeResolver\\NodeTypeResolver::resolve\(\) expects PhpParser\\Node, PhpParser\\Node\\Expr|string given#' # 3
2018-03-19 17:39:58 +00:00
- '#Method Rector\\NodeTraverser\\RectorNodeTraverser::getRectors\(\) should return array<Rector\\Contract\\Rector\\RectorInterface> but returns array<PhpParser\\NodeVisitor>#' # 1
2017-11-06 10:40:43 +00:00
2017-11-06 13:24:40 +00:00
# buggy
2018-05-12 18:11:10 +00:00
- '#Access to an undefined property PhpParser\\Node\\Expr::\$value#' # 2
2018-01-18 21:10:39 +00:00
- '#Parameter \#1 \$classLikeNode of method Rector\\NodeAnalyzer\\ClassLikeAnalyzer::resolveExtendsTypes\(\) expects PhpParser\\Node\\Stmt\\Class_\|PhpParser\\Node\\Stmt\\Interface_, PhpParser\\Node\\Stmt\\ClassLike given#' # 1
- '#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#' # 1
2018-05-12 16:48:36 +00:00
- '#Access to an undefined property PhpParser\\Node\\Param::\$var#' # 4
2018-05-12 18:11:10 +00:00
- '#Call to an undefined method PhpParser\\BuilderFactory::(args|classConstFetch|methodCall|staticCall)\(\)#' # 9
2018-03-25 07:49:51 +00:00
- "#Casting to string something that's already string#" # 4
2018-01-18 21:10:39 +00:00
- '#Call to an undefined method PhpParser\\Node\\Stmt\\UseUse::getAlias\(\)#' # 2
- '#Call to an undefined method PhpParser\\PrettyPrinter\\Standard::printFormatPreserving\(\)#' # 1
2018-05-12 18:11:10 +00:00
- '#Access to an undefined property PhpParser\\Node\\Expr::\$(name|var)#' # 2
- '#Call to an undefined method PhpParser\\Node\\Expr\\BinaryOp::getOperatorSigil\(\).#' # 1
- '#Call to an undefined method PhpParser\\Node\\Expr\\ArrayItem::getComments\(\).#' # 2
2018-02-20 23:27:01 +00:00
2017-11-06 10:40:43 +00:00
excludes_analyse:
# test files
2018-03-25 07:49:51 +00:00
- '*tests/Rector/Dynamic/MethodNameReplacerRector/**/SomeClass.php'
- '*packages/BetterReflection/tests/Reflector/NotLoadedSource/SomeClass.php'
2018-01-04 15:09:29 +00:00
# clean once upon a time
reportUnmatchedIgnoredErrors: false