2018-09-14 18:01:40 +02:00
includes :
2020-02-13 23:02:57 +01:00
- 'utils/phpstan-extensions/config/phpstan-extensions.neon'
2020-01-03 20:47:07 +01:00
- 'vendor/symplify/phpstan-extensions/config/config.neon'
- 'vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon'
- 'vendor/phpstan/phpstan/conf/bleedingEdge.neon'
2018-09-14 18:01:40 +02:00
2017-11-06 11:40:43 +01:00
parameters :
2020-02-06 22:48:18 +01:00
# checkGenericClassInNonGenericObjectType: false
2019-12-28 11:33:33 +01:00
level : max
2019-12-08 22:00:38 +01:00
2019-07-09 11:27:55 -03:00
# to allow installing with various phsptan versions without reporting old errors here
2020-02-09 10:32:51 +01:00
reportUnmatchedIgnoredErrors : false
2018-10-18 22:42:58 +02:00
2019-09-10 14:49:07 +02:00
autoload_directories :
- stubs
2019-12-08 18:01:29 +01:00
- compiler/src
2019-09-10 14:49:07 +02:00
2020-02-06 20:15:36 +01:00
paths :
2020-02-11 14:11:47 +01:00
- bin
2020-02-06 20:15:36 +01:00
- src
2020-02-11 14:11:47 +01:00
- rules
2020-02-06 20:15:36 +01:00
- packages
- tests
- compiler/src
2018-09-14 18:01:40 +02:00
excludes_analyse :
2019-09-15 20:54:06 +02:00
- "*/Expected/*"
2019-02-21 15:36:16 +01:00
# complex printer
- "packages/ContributorTools/src/Command/DumpNodesCommand.php"
2018-12-28 17:01:16 +01:00
- "utils/phpstan/generate-paths.php"
2018-09-14 18:01:40 +02:00
# test files
2018-09-21 07:12:24 +02:00
- '*packages/NodeTypeResolver/tests/Source/AnotherClass.php'
2019-03-09 12:55:17 +00:00
- '*tests/Rector/MethodCall/RenameMethodRector/**/SomeClass.php'
2018-09-14 18:01:40 +02:00
- '*packages/BetterReflection/tests/Reflector/NotLoadedSource/SomeClass.php'
- 'packages/NodeTypeResolver/tests/PerNodeTypeResolver/VariableTypeResolver/Source/NewClass.php'
# tests files
2019-03-27 17:46:25 +01:00
- '*tests/*/Fixture/*'
- '*tests/*/Source/*'
- '*tests/Source/*'
- 'packages/NodeTypeResolver/tests/Source/SomeClass.php'
2019-07-09 11:27:55 -03:00
# intentionally original
2019-09-23 16:36:58 +02:00
- 'packages/Php70/src/EregToPcreTransformer.php'
2018-10-13 18:34:37 +08:00
- '*/packages/ContributorTools/templates/*'
2018-10-21 21:43:47 +02:00
# part of composer
- 'tests/Composer/AutoloadWrongCasesEventSubscriber.php'
2019-05-23 08:02:49 +02:00
- '*/tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Expected/Just*ExceptionWithoutNamespace.php'
2019-08-30 08:27:03 +02:00
# stubs
- 'stubs/*'
2018-09-14 18:01:40 +02:00
2017-11-06 11:40:43 +01:00
ignoreErrors :
2019-01-12 20:36:34 +01:00
# false positive
2019-12-09 01:12:57 +01:00
# - '#Call to function method_exists\(\) with string and (.*?) will always evaluate to false#'
2019-01-12 20:36:34 +01:00
- '#PHPDoc tag \@param for parameter \$node with type float is incompatible with native type PhpParser\\Node#'
2019-07-09 11:27:55 -03:00
# misuse of interface and class
2019-01-14 23:05:14 +01:00
- '#Parameter \#1 (.*?) expects Symfony\\Component\\DependencyInjection\\ContainerBuilder, Symfony\\Component\\DependencyInjection\\ContainerInterface given#'
2018-10-22 19:17:17 +02:00
- '#Strict comparison using === between string and null will always evaluate to false#'
2018-07-25 13:06:07 +02:00
2019-07-09 11:27:55 -03:00
# false positive - type is set by annotation above
2018-11-07 21:53:19 +01:00
- '#Array \(array<PhpParser\\Node\\Stmt>\) does not accept PhpParser\\Node#'
2018-08-31 00:57:59 +02:00
2019-07-09 11:27:55 -03:00
# irrelevant
2018-10-22 12:43:10 +02:00
- '#Call to function in_array\(\) with arguments string, (.*?) and true will always evaluate to false#'
2018-07-25 13:06:07 +02:00
# known values
2018-12-15 13:47:01 +01:00
- '#Access to an undefined property PhpParser\\Node\\Expr::\$left#'
- '#Access to an undefined property PhpParser\\Node\\Expr::\$right#'
2019-06-09 07:08:08 +02:00
2018-08-15 00:12:41 +02:00
- '#Access to an undefined property PhpParser\\Node\\Expr\\MethodCall\|PhpParser\\Node\\Stmt\\ClassMethod::\$params#'
2019-01-14 23:05:14 +01:00
- '#Cannot call method getName\(\) on PHPStan\\Reflection\\ClassReflection\|null#'
2019-01-14 15:10:41 +01:00
2018-10-15 21:30:38 +08:00
# false positive, has annotation type above
2018-10-21 12:32:51 +02:00
- '#Method Rector\\CodeQuality\\Rector\\Foreach_\\SimplifyForeachToCoalescingRector\:\:matchReturnOrAssignNode\(\) should return PhpParser\\Node\\Expr\\Assign\|PhpParser\\Node\\Stmt\\Return_\|null but returns PhpParser\\Node\|null#'
2018-11-07 18:22:27 +01:00
- '#Access to an undefined property PhpParser\\Node::\$(\w+)#'
2018-10-21 12:32:51 +02:00
2018-04-09 00:08:05 +02:00
# intentionally incorrect - part of the test
2020-02-06 22:48:18 +01:00
- '#Parameter \#2 \$codeSamples of class Rector\\Core\\RectorDefinition\\RectorDefinition constructor expects array<Rector\\Core\\Contract\\RectorDefinition\\CodeSampleInterface>, array<int, stdClass> given#'
2018-08-01 11:53:26 +02:00
2017-11-06 13:58:51 +01:00
# known values
2018-10-07 17:53:59 +08:00
- '#Cannot access property \$value on PhpParser\\Node\\Expr\\ArrayItem\|null#'
2018-12-06 14:19:58 +01:00
- '#Method Rector\\Symfony\\Rector\\New_\\StringToArrayArgumentProcessRector::findPreviousNodeAssign\(\) should return PhpParser\\Node\\Expr\\Assign\|null but returns PhpParser\\Node\|null#'
2018-04-02 15:17:12 +02:00
2019-01-14 19:21:23 +01:00
# known values
- '#Strict comparison using === between PhpParser\\Node\\Expr and null will always evaluate to false#'
2019-02-02 13:27:03 +01:00
# console argument/option
- '#Cannot cast array<string\>\|string\|null to string#'
2019-02-02 15:27:45 +01:00
2019-02-17 02:13:29 +01:00
- '#Access to an undefined property PhpParser\\Node\\Stmt\:\:\$expr#'
- '#Cannot access property \$stmts on PhpParser\\Node\\Stmt\\Else_\|null#'
2019-02-11 23:35:20 +01:00
2019-02-17 13:50:24 +01:00
# node finder
2019-02-18 18:46:36 +01:00
- '#Method Rector\\(.*?) should return array<PhpParser\\Node\\(.*?)> but returns array<PhpParser\\Node\>#'
2019-02-17 13:50:24 +01:00
# known values
2019-05-07 14:33:26 +02:00
- '#Parameter \#2 \$variableName of class Rector\\DeadCode\\Data\\VariableNodeUseInfo constructor expects string, string\|null given#'
- '#Cannot call method getParentNode\(\) on Rector\\DeadCode\\Data\\VariableNodeUseInfo\|null#'
2019-02-17 13:50:24 +01:00
2019-02-11 23:35:20 +01:00
# part of test
2019-02-28 22:50:53 +01:00
- '#(.*?)(AttributeAwareNodeInterface|AttributeAware(.*?)TagValueNode)(.*?)#'
- '#Call to an undefined method PHPStan\\PhpDocParser\\Ast\\PhpDoc\\(.*?)\:\:getAttribute\(\)#'
- '#Parameter \#1 \$children of class PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode constructor expects array<PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocChildNode\>, array<int, PHPStan\\PhpDocParser\\Ast\\Node\> given#'
2019-03-13 01:49:15 +01:00
- '#Method Rector\\PHPUnit\\Rector\\MethodCall\\ReplaceAssertArraySubsetRector\:\:matchArray\(\) should return PhpParser\\Node\\Expr\\Array_\|null but returns PhpParser\\Node\\Expr#'
2019-03-18 12:10:33 +01:00
2019-03-26 23:56:10 +01:00
- '#(.*?)PhpParser\\Node\\Expr\\Error\|PhpParser\\Node\\Expr\\Variable given#'
2019-03-27 17:46:25 +01:00
# false positive 0.11.5
- '#Unreachable statement \- code above always terminates#'
2019-03-31 14:45:15 +02:00
- '#Negated boolean expression is always true#'
2019-03-31 21:30:26 +02:00
- '#Strict comparison using \=\=\= between PhpParser\\Node and null will always evaluate to false#'
2019-04-14 00:37:05 +02:00
# known types
2019-04-25 15:28:01 +02:00
- '#Access to an undefined property PhpParser\\Node\\Expr\\Error\|PhpParser\\Node\\Expr\\Variable\:\:\$name#'
2019-05-07 15:37:50 +02:00
- '#Strict comparison using \=\=\= between PhpParser\\Node\\Expr\\ArrayItem and null will always evaluate to false#'
2019-05-09 15:30:39 +02:00
- '#Parameter \#2 \.\.\.\$args of function array_merge expects array, array<int, string\>\|false given#'
2019-05-11 15:22:57 +02:00
- '#Access to an undefined property PhpParser\\Node\\Expr\:\:\$args#'
2019-05-11 15:07:00 +02:00
2020-02-06 22:48:18 +01:00
- '#Parameter \#2 \$name of method Rector\\Core\\Rector\\AbstractRector\:\:isName\(\) expects string, string\|null given#'
2019-07-09 11:27:55 -03:00
# cascade irrelevant
2019-05-19 23:44:38 +02:00
- '#Parameter (.*?) expects array<PhpParser\\Node\\Stmt\>, array<PhpParser\\Node\> given#'
2019-05-23 19:32:46 +02:00
# known value
2020-02-06 22:48:18 +01:00
- '#Parameter \#1 \$node of method Rector\\Core\\Rector\\AbstractRector\:\:getName\(\) expects PhpParser\\Node, PhpParser\\Node\\Identifier\|null given#'
2019-05-25 18:36:53 +02:00
- '#Cannot cast array<string\>\|bool\|string\|null to string#'
2019-05-28 22:48:57 +02:00
- '#Method Rector\\Legacy\\Rector\\ClassMethod\\ChangeSingletonToServiceRector\:\:matchStaticPropertyFetchAndGetSingletonMethodName\(\) should return array<string\>\|null but returns array<int, string\|null\>#'
2019-06-04 17:41:23 +03:00
2019-07-16 11:07:26 +02:00
- '#Parameter \#2 \$currentNode of method Rector\\CodingStyle\\Rector\\String_\\ManualJsonStringToJsonEncodeArrayRector\:\:matchNextExpressionAssignConcatToSameVariable\(\) expects PhpParser\\Node\\Expr\\Assign\|PhpParser\\Node\\Expr\\AssignOp\\Concat, PhpParser\\Node given#'
2019-07-22 12:49:50 +02:00
# array is callable
2019-08-04 13:05:40 +02:00
- '#If condition is always true#'
2019-08-03 21:41:46 +02:00
2019-08-06 11:14:50 +02:00
- '#Ternary operator condition is always true#'
2019-08-19 16:52:02 +02:00
2019-08-28 12:02:33 +02:00
- '#Call to function property_exists\(\) with string and (.*?) will always evaluate to false#'
2019-08-31 10:08:37 +02:00
- '#Access to an undefined property PhpParser\\Node\\FunctionLike\|PhpParser\\Node\\Stmt\\ClassLike\:\:\$stmts#'
2019-08-19 16:52:02 +02:00
2019-09-01 22:38:31 +02:00
- '#Property Rector\\TypeDeclaration\\TypeInferer\\(.*?)\:\:\$(.*?)TypeInferers \(array<Rector\\TypeDeclaration\\Contract\\TypeInferer\\(.*?)TypeInfererInterface\>\) does not accept array<Rector\\TypeDeclaration\\Contract\\TypeInferer\\PriorityAwareTypeInfererInterface\>#'
# sense-less errors
2019-09-04 14:10:29 +02:00
2019-08-19 16:52:02 +02:00
# PHP 7.4 1_000 support
- '#Property PhpParser\\Node\\Scalar\\DNumber\:\:\$value \(float\) does not accept string#'
- '#Call to function is_string\(\) with float will always evaluate to false#'
2019-09-14 18:11:14 +02:00
2019-09-21 00:06:46 +02:00
- '#Method Rector\\Doctrine\\Rector\\MethodCall\\ChangeSetIdToUuidValueRector\:\:getSetUuidMethodCallOnSameVariable\(\) should return PhpParser\\Node\\Expr\\MethodCall\|null but returns PhpParser\\Node\|null#'
# bugs
2019-09-26 01:52:55 +02:00
- '#Parameter \#1 \$items of class PhpParser\\Node\\Expr\\Array_ constructor expects array<PhpParser\\Node\\Expr\\ArrayItem\>, array<PhpParser\\Node\\Expr\\ArrayItem\|null\> given#'
2019-10-04 14:55:26 +02:00
- '#Method Rector\\BetterPhpDocParser\\Tests\\PhpDocParser\\OrmTagParser\\AbstractPhpDocInfoTest\:\:parseFileAndGetFirstNodeOfType\(\) should return PhpParser\\Node but returns PhpParser\\Node\|null#'
2019-10-04 19:31:37 +02:00
2019-12-09 01:12:57 +01:00
- '#Method Rector\\BetterPhpDocParser\\PhpDocNodeFactory\\JMS\\SerializerTypePhpDocNodeFactory::resolveTypeAnnotation\(\) should return JMS\\Serializer\\Annotation\\Type\|null but returns object\|null#'
2019-10-05 13:44:03 +02:00
# known value
2019-10-08 18:28:23 +01:00
- '#Method Rector\\StrictCodeQuality\\Rector\\Stmt\\VarInlineAnnotationToAssertRector\:\:findVariableByName\(\) should return PhpParser\\Node\\Expr\\Variable\|null but returns PhpParser\\Node\|null#'
2019-10-16 23:55:36 +02:00
2019-11-04 01:48:08 +01:00
- '#Method Rector\\NodeTypeResolver\\PHPStan\\Type\\TypeFactory\:\:createUnionOrSingleType\(\) should return PHPStan\\Type\\MixedType\|PHPStan\\Type\\UnionType but returns PHPStan\\Type\\Type#'
2019-11-04 17:30:10 +01:00
2019-11-05 16:33:38 +01:00
#phpstan seems to be missing the entire docblock, though it's there
- '#.*keepLivingCodeFromExpr.*#'
2019-11-04 21:26:08 +01:00
2019-11-06 13:29:43 +01:00
# test
- '#Class Rector\\DynamicTypeAnalysis\\Tests\\Rector\\ClassMethod\\AddArgumentTypeWithProbeDataRector\\Fixture\\SomeClass not found#'
2019-11-14 17:48:46 +01:00
# known value
2019-11-17 01:46:18 +01:00
- '#Parameter \#1 \$type of method PhpParser\\Builder\\Param\:\:setType\(\) expects PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType\|string, PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType\|PhpParser\\Node\\UnionType given#'
2019-11-23 18:27:18 +01:00
2019-12-08 11:03:08 +01:00
-
2020-02-06 22:48:18 +01:00
message : '#Class Rector\\Core\\Tests\\Rector\\StaticCall\\SwapClassMethodArgumentsRector\\Fixture\\SomeClass not found#'
2019-12-08 11:03:08 +01:00
path : tests/Rector/StaticCall/SwapClassMethodArgumentsRector/SwapClassMethodArgumentsRectorTest.php
2019-12-08 18:01:29 +01:00
2019-12-08 22:00:38 +01:00
# mixed
- '#in iterable type Iterator#'
- '#with no typehint specified#'
- '#return type has no value type specified in iterable type array#'
- '#has no return typehint#'
- '#Offset int\|string\|null does not exist on array<PhpParser\\Node\\Stmt>\|null#'
- '#class-string<T of object>\|T of object#'
- '#with no value type specified in iterable type array#'
- '#type specified in iterable type (array|iterable)#'
# known values
- '#Offset 0 does not exist on array<PhpParser\\Node\\Stmt>\|null#'
- '#Parameter \#1 \$left of class PhpParser\\Node\\Expr\\BinaryOp\\Spaceship constructor expects PhpParser\\Node\\Expr, PhpParser\\Node\\Expr\|null given#'
- '#Parameter \#2 \$right of class PhpParser\\Node\\Expr\\BinaryOp\\Spaceship constructor expects PhpParser\\Node\\Expr, PhpParser\\Node\\Expr\|null given#'
- '#Parameter \#3 \$nodeCallback of method PHPStan\\Analyser\\NodeScopeResolver::processNodes\(\) expects Closure\(PhpParser\\Node, PHPStan\\Analyser\\Scope\): void, Closure\(PhpParser\\Node, PHPStan\\Analyser\\MutatingScope\) : void given#'
# false positive
- '#Comparison operation "<" between 0 and 2 is always true#'
2019-12-16 15:45:37 +01:00
2020-02-07 08:46:29 +01:00
- '#Method Rector\\Symfony\\Rector\\FrameworkBundle\\AbstractToConstructorInjectionRector\:\:getServiceTypeFromMethodCallArgument\(\) should return PHPStan\\Type\\Type but returns PHPStan\\Type\\Type\|null#'
2019-12-24 11:45:52 +01:00
- '#Parameter \#1 \$error_handler of function set_error_handler expects \(callable\(int, string, string, int, array\)\: bool\)\|null, Closure\(int, string\)\ : void given#'
2019-12-26 00:02:37 +01:00
- '#Method Rector\\BetterPhpDocParser\\PhpDocNodeFactory\\Gedmo\\(.*?)\:\:createFromNodeAndTokens\(\) should return Rector\\BetterPhpDocParser\\PhpDocNode\\Gedmo\\(.*?)\|null but returns PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagValueNode\|null#'
2019-12-30 20:10:43 +01:00
- '#Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) expects class\-string<object\>, string given#'
- '#Unable to resolve the template type ExpectedType in call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\)#'
2020-01-04 20:24:42 +01:00
2020-01-06 14:38:37 +01:00
# fix Symplify 7.2 later
- '#Method (.*?) returns bool type, so the name should start with is/has/was#'
2020-01-07 13:04:09 +01:00
2020-01-08 09:56:26 +01:00
# known value
- "#^Parameter \\#1 \\$variable of class Rector\\\\Php70\\\\ValueObject\\\\VariableAssignPair constructor expects PhpParser\\\\Node\\\\Expr\\\\ArrayDimFetch\\|PhpParser\\\\Node\\\\Expr\\\\PropertyFetch\\|PhpParser\\\\Node\\\\Expr\\\\StaticPropertyFetch\\|PhpParser\\\\Node\\\\Expr\\\\Variable, PhpParser\\\\Node\\\\Expr given\\.$#"
2020-01-17 10:02:46 +01:00
- '#Cannot cast \(array<string\>\)\|string\|true to string#'
2020-01-18 21:57:35 +01:00
- '#In method "Rector\\BetterPhpDocParser\\AnnotationReader\\NodeAnnotationReader\:\:createPropertyReflectionFromPropertyNode", caught "Throwable" must be rethrown\. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception\. More info\: http\://bit\.ly/failloud#'
2020-01-23 12:26:44 +01:00
- '#Method Rector\\CakePHPToSymfony\\Template\\TemplateMethodCallManipulator\:\:matchThisRenderMethodCallBareOrInReturn\(\) should return PhpParser\\Node\\Expr\\MethodCall\|null but returns PhpParser\\Node\\Expr#'
2020-01-21 14:32:40 +01:00
# doc is not enough
- '#Result of \|\| is always true#'
2020-01-21 16:36:31 +01:00
# known value
- '#Access to undefined constant Rector\\BetterPhpDocParser\\PhpDocNode\\AbstractTagValueNode\:\:SHORT_NAME#'
2020-01-28 17:01:22 +01:00
- '#Parameter \#2 \$name of class PhpParser\\Node\\Expr\\MethodCall constructor expects PhpParser\\Node\\Expr\|PhpParser\\Node\\Identifier\|string, string\|null given#'
2020-01-29 14:36:09 +01:00
- '#Ternary operator condition is always false#'
- '#Parameter \#1 \$tagValueNode of method Rector\\BetterPhpDocParser\\PhpDocInfo\\PhpDocInfo\:\:addTagValueNodeWithShortName\(\) expects Rector\\BetterPhpDocParser\\PhpDocNode\\AbstractTagValueNode, PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode\|Rector\\BetterPhpDocParser\\PhpDocNode\\Doctrine\\Property_\\JoinColumnTagValueNode given#'
2020-02-02 19:15:36 +01:00
- '#Parameter \#1 \$eventListenerTag of method Rector\\SymfonyCodeQuality\\Rector\\Class_\\EventListenerToEventSubscriberRector\:\:createEventItem\(\) expects Rector\\Symfony\\ValueObject\\Tag\\EventListenerTag, Rector\\Symfony\\Contract\\Tag\\TagInterface given#'
2020-02-02 19:15:36 +01:00
- '#Method Rector\\BetterPhpDocParser\\PhpDocInfo\\PhpDocInfoFactory\:\:parseTokensToPhpDocNode\(\) should return Rector\\AttributeAwarePhpDoc\\Ast\\PhpDoc\\AttributeAwarePhpDocNode but returns PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode#'
- '#Property PhpParser\\Node\\Stmt\\Expression\:\:\$expr \(PhpParser\\Node\\Expr\) does not accept PhpParser\\Node\\Expr\|null#'
2020-02-04 16:14:40 +01:00
- '#Call to an undefined method PHPStan\\Type\\Type\:\:getClassName\(\)#'
2020-02-10 10:17:05 +01:00
- '#Parameter \#1 \$typeNode of method Rector\\StaticTypeMapper\\StaticTypeMapper\:\:mapPHPStanPhpDocTypeNodeToPHPStanType\(\) expects PHPStan\\PhpDocParser\\Ast\\Type\\TypeNode, PHPStan\\PhpDocParser\\Ast\\Node given#'
2020-02-06 20:15:36 +01:00
- '#Parameter \#1 \$str of function preg_quote expects string, int\|string given#'
2020-02-06 22:48:18 +01:00
- '#Parameter \#1 \$node of method Rector\\Core\\PhpParser\\Node\\Commander\\NodeAddingCommander\:\:wrapToExpression\(\) expects PhpParser\\Node\\Expr\|PhpParser\\Node\\Stmt, PhpParser\\Node given#'
- '#Parameter \#2 \$propertyName of method Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\SingleMethodAssignedNodePropertyTypeInferer\:\:resolveAssignedNodeToProperty\(\) expects string, string\|null given#'
- '#Parameter \#1 \$sprintfFuncCall of method Rector\\Core\\PhpParser\\NodeTransformer\:\:transformSprintfToArray\(\) expects PhpParser\\Node\\Expr\\FuncCall, PhpParser\\Node given#'
- '#Parameter \#1 \$nodes of method Rector\\CodeQuality\\Rector\\Array_\\CallableThisArrayToAnonymousFunctionRector\:\:hasClassMethodReturn\(\) expects array<PhpParser\\Node\\Stmt\\Return_\>, array<PhpParser\\Node\> given#'
- '#Parameter \#1 \$nodes of method Rector\\Core\\PhpParser\\Node\\BetterNodeFinder\:\:find\(\) expects array<PhpParser\\Node\>\|PhpParser\\Node, array<PhpParser\\Node\\Stmt\>\|null given#'
- '#PHPDoc tag @return with type iterable<object\> is not subtype of native type array#'
- '#Method Rector\\BetterPhpDocParser\\AnnotationReader\\NodeAnnotationReader\:\:createClassReflectionFromNode\(\) return type with generic class ReflectionClass does not specify its types\ : T#'
2020-02-09 10:32:51 +01:00
- '#Method Rector\\SOLID\\Reflection\\ParentConstantReflectionResolver\:\:(.*?)\(\) should return ReflectionClassConstant\|null but returns ReflectionClassConstant\|false#'
2020-02-09 12:31:31 +01:00
- '#Parameter \#1 \$firstStmt of method Rector\\Core\\Rector\\MethodBody\\NormalToFluentRector\:\:isBothMethodCallMatch\(\) expects PhpParser\\Node\\Stmt\\Expression, PhpParser\\Node\\Stmt given#'
2020-02-10 10:32:18 +01:00
- '#Method Rector\\Core\\Rector\\AbstractRector\:\:wrapToArg\(\) should return array<PhpParser\\Node\\Arg\> but returns array<PhpParser\\Node\\Arg\|PhpParser\\Node\\Expr\>#'
2020-02-11 14:11:47 +01:00
- '#Property PhpParser\\Node\\Stmt\\ClassMethod\:\:\$returnType \(PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType\|PhpParser\\Node\\UnionType\|null\) does not accept PhpParser\\Node#'
- '#Parameter \#1 \$possibleSubtype of method Rector\\TypeDeclaration\\PhpParserTypeAnalyzer\:\:isSubtypeOf\(\) expects PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType\|PhpParser\\Node\\UnionType, PhpParser\\Node given#'
- '#Parameter \#2 \$inferredReturnNode of method Rector\\TypeDeclaration\\Rector\\FunctionLike\\ReturnTypeDeclarationRector\:\:addReturnType\(\) expects PhpParser\\Node, PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|PhpParser\\Node\\NullableType\|PhpParser\\Node\\UnionType\|null given#'
2020-02-11 14:50:24 +01:00
- '#Method Rector\\FileSystemRector\\Rector\\AbstractFileSystemRector\:\:wrapToArg\(\) should return array<PhpParser\\Node\\Arg\> but returns array<PhpParser\\Node\\Arg\|PhpParser\\Node\\Expr\>#'
2020-02-15 00:21:14 +01:00
- '#Strict comparison using \=\=\= between mixed and null will always evaluate to false#'
2020-02-16 22:29:32 +01:00
- '#Cannot call method (.*?)\(\) on Rector\\BetterPhpDocParser\\PhpDocInfo\\PhpDocInfo\|null#'