,ignored_issues?:list,php_version?:string}> */ 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' ], 'intersectionsNotAllowedWithUnions' => [ 'code' => ' 'ParseError', 'ignored_issues' => [], 'php_version' => '8.1' ], 'intersectionsNotAllowedWithNonClasses' => [ 'code' => ' 'ParseError', 'ignored_issues' => [], 'php_version' => '8.1' ], 'intersectionsNotAllowedInPHP80' => [ 'code' => ' 'ParseError', 'ignored_issues' => [], 'php_version' => '8.0' ], ]; } }