[ 'code' => 'self; } }', 'assertions' => [], 'ignored_issues' => [], 'php_version' => '8.0' ], 'nativeTypeUnionAsArgument' => [ 'code' => 'foo(); } test(new C()); ', 'assertions' => [], 'ignored_issues' => [], 'php_version' => '8.0' ], 'unionAndNullableEquivalent' => [ 'code' => ' [], 'ignored_issues' => [], 'php_version' => '8.0' ], ]; } 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' ], ]; } }