diff --git a/library/think/File.php b/library/think/File.php index 970063b2..43f38575 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -403,4 +403,9 @@ class File extends SplFileObject { return $this->error; } + + public function __call($method, $args) + { + return $this->hash($method); + } }