浏览代码

[HttpFoundation] Minor optimization

Jordi Boggiano 14 年之前
父节点
当前提交
2a5fcdfb1a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Component/HttpFoundation/File/File.php

+ 2 - 2
src/Symfony/Component/HttpFoundation/File/File.php

@@ -2,7 +2,7 @@
 
 /*
  * This file is part of the Symfony package.
- * 
+ *
  * (c) Fabien Potencier <fabien@symfony.com>
  *
  * For the full copyright and license information, please view the LICENSE
@@ -497,7 +497,7 @@ class File
      */
     public function __toString()
     {
-        return null === $this->getPath() ? '' : $this->getPath();
+        return null === $this->path ? '' : $this->path;
     }
 
     /**