,ignored_issues?:list,php_version?:string}> */ public function providerValidCodeParse(): iterable { return [ 'nativeTypeUnionInConstructor' => [ 'code' => 'self; } }', 'assertions' => [], 'error_levels' => [], 'php_version' => '8.0' ], 'nativeTypeUnionAsArgument' => [ 'code' => 'foo(); } test(new C()); ', 'assertions' => [], 'error_levels' => [], 'php_version' => '8.0' ], 'unionAndNullableEquivalent' => [ 'code' => ' [], 'error_levels' => [], 'php_version' => '8.0' ], ]; } /** * @return iterable,php_version?:string}> */ public function providerInvalidCodeParse(): iterable { return [ 'invalidNativeUnionArgument' => [ 'code' => ' 'InvalidScalarArgument', 'ignored_issues' => [], 'php_version' => '8.0' ], 'mismatchDocblockNativeUnionArgument' => [ 'code' => ' 'MismatchingDocblockParamType', 'ignored_issues' => [], 'php_version' => '8.0' ], 'unionsNotAllowedInPHP74' => [ 'code' => ' 'ParseError', 'ignored_issues' => [], 'php_version' => '7.4' ], ]; } }