We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2bde79 + 32a789c commit 47cf41bCopy full SHA for 47cf41b
src/Config.php
@@ -219,7 +219,10 @@ public function __set($name, $value)
219
switch ($name) {
220
case 'reportWidth' :
221
// Support auto terminal width.
222
- if ($value === 'auto' && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1) {
+ if ($value === 'auto'
223
+ && function_exists('shell_exec') === true
224
+ && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1
225
+ ) {
226
$value = (int) $matches[1];
227
} else {
228
$value = (int) $value;
0 commit comments