From 665b2c3ab9800f423536de38826a887e7e65891d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E5=88=9D=E7=9A=84=E6=A2=A6=E6=83=B3?= <381296986@qq.com> Date: Wed, 16 Nov 2016 10:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=8E=A7=E5=88=B6=E5=99=A8=E4=B8=AD?= =?UTF-8?q?=E8=B0=83=E7=94=A8request=E5=92=8Cview=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在控制器中调用request和view属性增加类型提示 --- library/think/Controller.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/think/Controller.php b/library/think/Controller.php index a889e4d9..fe4efae2 100644 --- a/library/think/Controller.php +++ b/library/think/Controller.php @@ -20,9 +20,13 @@ class Controller { use \traits\controller\Jump; - // 视图类实例 + /** + * @var \think\View 视图类实例 + */ protected $view; - // Request实例 + /** + * @var \think\Request Request实例 + */ protected $request; // 验证失败是否抛出异常 protected $failException = false;