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 = [ // 模板起始路径