From bc58cd765bc5bb0583620c0a2cab61617404f0bb Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Wed, 15 Jun 2016 11:46:33 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=BA=93=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6a23e52a..0618a62e 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ "require-dev": { "johnkary/phpunit-speedtrap": "^1.0", "mikey179/vfsStream": "~1.6", - "phploc/phploc": "*", + "phploc/phploc": "2.*", "phpunit/phpunit": "4.8.*", - "sebastian/phpcpd": "*", + "sebastian/phpcpd": "2.*", "squizlabs/php_codesniffer": "2.*" }, "minimum-stability": "dev" From 30764fe702b1be43579b92ab53afd030a97cfe75 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Wed, 15 Jun 2016 12:37:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3reflection-docblock?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 0618a62e..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": "2.*", - "phpunit/phpunit": "4.8.*", "sebastian/phpcpd": "2.*", - "squizlabs/php_codesniffer": "2.*" - }, - "minimum-stability": "dev" + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection-docblock": "^2.0" + } } From 116a289cf79991fd15b67d96e7c4e9872710c23c Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Wed, 15 Jun 2016 14:59:31 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=94=B9=E8=BF=9Bdebug=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=B6console=E4=B8=8B=E5=BC=82=E5=B8=B8=E7=9A=84=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/exception/Handle.php | 3 +++ 1 file changed, 3 insertions(+) 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); }