Make sure we always pass a string to strtoupper

main
Jordi Boggiano 3 years ago
parent e1570798cd
commit bbd87934e9
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -98,7 +98,7 @@ class Platform
// detect msysgit/mingw and assume this is a tty because detection // detect msysgit/mingw and assume this is a tty because detection
// does not work correctly, see https://github.com/composer/composer/issues/9690 // does not work correctly, see https://github.com/composer/composer/issues/9690
if (in_array(strtoupper(getenv('MSYSTEM')), array('MINGW32', 'MINGW64'), true)) { if (in_array(strtoupper(getenv('MSYSTEM') ?: ''), array('MINGW32', 'MINGW64'), true)) {
return true; return true;
} }

Loading…
Cancel
Save