,error_levels?:string[]}> */ public function providerValidCodeParse(): iterable { return [ 'inheritParentReturnDocbblock' => [ 'doFoo();', [ '$b' => 'array', ], ], 'inheritedSelfAnnotation' => [ 'foo($i); }', ], 'inheritTwice' => [ ' [ ' [ 'map(); }' ], 'inheritCorrectReturnTypeOnClass' => [ 'map(); }' ], ]; } /** * @return iterable */ public function providerInvalidCodeParse(): iterable { return [ 'automaticInheritDoc' => [ 'boo([1, 2]);', 'error_message' => 'InvalidScalarArgument', ], ]; } }