[ 'code' => 'doFoo();', 'assertions' => [ '$b' => 'array', ], ], 'inheritedSelfAnnotation' => [ 'code' => 'foo($i); }', ], 'inheritTwice' => [ 'code' => ' [ 'code' => ' [ 'code' => 'map(); }', ], 'inheritCorrectReturnTypeOnClass' => [ 'code' => 'map(); }', ], 'inheritCorrectParamOnTypeChange' => [ 'code' => '|int $className */ public function a(array|int $className): int { return 0; } } class B extends A { public function a(array|int|bool $className): int { return 0; } } print_r((new A)->a(1)); print_r((new B)->a(true)); ', 'assertions' => [], 'ignored_issues' => [], 'php_version' => '8.0', ], ]; } public function providerInvalidCodeParse(): iterable { return [ 'automaticInheritDoc' => [ 'code' => 'boo([1, 2]);', 'error_message' => 'InvalidArgument', ], ]; } }