Explorar el Código

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

Kris Wallsmith hace 15 años
padre
commit
8c0f7e8569
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
     }
 }