diff --git a/src/Composer/Util/ErrorHandler.php b/src/Composer/Util/ErrorHandler.php index 708d2976f..d179e2cc9 100644 --- a/src/Composer/Util/ErrorHandler.php +++ b/src/Composer/Util/ErrorHandler.php @@ -37,6 +37,11 @@ class ErrorHandler return; } + if (ini_get('xdebug.scream')) { + $message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be". + "\na legitimately suppressed error that you were not supposed to see."; + } + throw new \ErrorException($message, 0, $level, $file, $line); }