[ 'code' => 'doFoo();', 'assertions' => [ '$b' => 'array', ], ], 'inheritedSelfAnnotation' => [ 'code' => 'foo($i); }', ], 'inheritTwice' => [ 'code' => ' [ 'code' => ' [ 'code' => 'map(); }', ], 'inheritCorrectReturnTypeOnClass' => [ 'code' => 'map(); }', ], ]; } public function providerInvalidCodeParse(): iterable { return [ 'automaticInheritDoc' => [ 'code' => 'boo([1, 2]);', 'error_message' => 'InvalidArgument', ], ]; } }