$type, 'byRef' => $byRef, 'variadic' => $variadic, 'name' => $name, 'default' => $default, ), $attributes ); if ($variadic && null !== $default) { throw new Error('Variadic parameter cannot have a default value'); } } }