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

[OutputEscaper] switched to casting object as string rather than call magic method directly

Kris Wallsmith преди 15 години
родител
ревизия
8c0f7e8569
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Components/OutputEscaper/ObjectDecorator.php

+ 1 - 1
src/Symfony/Components/OutputEscaper/ObjectDecorator.php

@@ -92,6 +92,6 @@ class ObjectDecorator extends GetterDecorator
      */
     public function __toString()
     {
-        return $this->escape($this->escaper, $this->value->__toString());
+        return $this->escape($this->escaper, (string) $this->value);
     }
 }