Skip to content

Commit 44775e6

Browse files
kaushikasomaiyaKaushik Somaiyareykjalin
authored
Fix php_uname critical error. Fixes #1566 (#2518)
Co-authored-by: Kaushik Somaiya <[email protected]> Co-authored-by: Kristófer Reykjalín <[email protected]>
1 parent a88cf0b commit 44775e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-wc-stripe-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function get_user_agent() {
6969
'lang' => 'php',
7070
'lang_version' => phpversion(),
7171
'publisher' => 'woocommerce',
72-
'uname' => php_uname(),
72+
'uname' => function_exists( 'php_uname' ) ? php_uname() : PHP_OS,
7373
'application' => $app_info,
7474
];
7575
}

0 commit comments

Comments
 (0)