From a7f9fa3603bb6a3b65be1f2ab186f89d39d23524 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 7 Jun 2016 22:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 2 +- library/think/Controller.php | 2 +- library/think/Template.php | 2 +- library/think/Validate.php | 2 +- library/think/view/driver/Think.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index e541dbe3..3dccefb0 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -22,7 +22,7 @@ class Cache * @var object * @access protected */ - protected static $handler = null; + protected static $handler; /** * 连接缓存 diff --git a/library/think/Controller.php b/library/think/Controller.php index 0fc04c49..234989e5 100644 --- a/library/think/Controller.php +++ b/library/think/Controller.php @@ -22,7 +22,7 @@ class Controller use \traits\controller\Jump; // 视图类实例 - protected $view = null; + protected $view; // Request实例 protected $request; // 验证失败是否抛出异常 diff --git a/library/think/Template.php b/library/think/Template.php index e5430707..f13b5f96 100644 --- a/library/think/Template.php +++ b/library/think/Template.php @@ -52,7 +52,7 @@ class Template private $literal = []; private $includeFile = []; // 记录所有模板包含的文件路径及更新时间 - protected $storage = null; + protected $storage; /** * 架构函数 diff --git a/library/think/Validate.php b/library/think/Validate.php index 69081dab..6b52c6c4 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -18,7 +18,7 @@ use think\Request; class Validate { // 实例 - protected static $instance = null; + protected static $instance; // 自定义的验证类型 protected static $type = []; diff --git a/library/think/view/driver/Think.php b/library/think/view/driver/Think.php index 10ef587d..00bfbccc 100644 --- a/library/think/view/driver/Think.php +++ b/library/think/view/driver/Think.php @@ -19,7 +19,7 @@ use think\Template; class Think { // 模板引擎实例 - private $template = null; + private $template; // 模板引擎参数 protected $config = [ // 模板起始路径