diff --git a/composer.json b/composer.json index 6a23e52a..5d3e5b43 100644 --- a/composer.json +++ b/composer.json @@ -20,12 +20,12 @@ "topthink/think-installer": "*" }, "require-dev": { + "phpunit/phpunit": "4.8.*", "johnkary/phpunit-speedtrap": "^1.0", "mikey179/vfsStream": "~1.6", - "phploc/phploc": "*", - "phpunit/phpunit": "4.8.*", - "sebastian/phpcpd": "*", - "squizlabs/php_codesniffer": "2.*" - }, - "minimum-stability": "dev" + "phploc/phploc": "2.*", + "sebastian/phpcpd": "2.*", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection-docblock": "^2.0" + } } diff --git a/library/think/exception/Handle.php b/library/think/exception/Handle.php index 0946b941..fde2f248 100644 --- a/library/think/exception/Handle.php +++ b/library/think/exception/Handle.php @@ -86,6 +86,9 @@ class Handle */ public function renderForConsole(Output $output, Exception $e) { + if (APP_DEBUG) { + $output->setVerbosity(Output::VERBOSITY_DEBUG); + } (new Console)->renderException($e, $output); }