Преглед на файлове

[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;
     }
 
     /**