*/ function http_get_last_response_headers(): array { if ( \function_exists( 'http_get_last_response_headers' ) ) { $headers = \http_get_last_response_headers(); return \is_array( $headers ) ? $headers : array(); } return array(); } } if ( ! \function_exists( __NAMESPACE__ . '\\http_clear_last_response_headers' ) ) { /** * Proxy PHP's response-header reset helper for prefixed vendor code. */ function http_clear_last_response_headers(): void { if ( \function_exists( 'http_clear_last_response_headers' ) ) { \http_clear_last_response_headers(); } } }