,ignored_issues?:list}> */ public function providerValidCodeParse(): iterable { return [ 'nativeTypeIntersectionInConstructor' => [ 'code' => 'self; } }', 'assertions' => [], 'ignored_issues' => [], 'php_version' => '8.1' ], 'nativeTypeIntersectionAsArgument' => [ 'code' => 'foo(); } test(new C()); ', 'assertions' => [], 'ignored_issues' => [], 'php_version' => '8.1' ], ]; } /** * @return iterable,php_version?:string}> */ public function providerInvalidCodeParse(): iterable { return [ 'invalidNativeIntersectionArgument' => [ 'code' => 'foo(); } test(new C()); ', 'error_message' => 'InvalidArgument', 'ignored_issues' => [], 'php_version' => '8.1' ], 'mismatchDocblockNativeIntersectionArgument' => [ 'code' => 'foo(); } ', 'error_message' => 'MismatchingDocblockParamType', 'ignored_issues' => [], 'php_version' => '8.1' ], ]; } }