File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed 
src/Symfony/Component/HttpFoundation 
tests/Symfony/Tests/Component/HttpFoundation Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ public function setContent($content)
170170 if  (!is_string ($ contentis_numeric ($ contentis_callable (array ($ content'__toString ' ))) {
171171 throw  new  \UnexpectedValueException ('The Response content must be a string or object implementing __toString(), " ' .gettype ($ content'" given. ' );
172172 }
173-  $ this content  = $ content
173+ 
174+  $ this content  = (string ) $ content
174175 }
175176
176177 /** 
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ public function testSetContent($content)
431431 {
432432 $ responsenew  Response ();
433433 $ responsesetContent ($ content
434-  $ this assertEquals ($ content$ responsegetContent ());
434+  $ this assertEquals (( string )  $ content$ responsegetContent ());
435435 }
436436
437437 /** 
                         You can’t perform that action at this time. 
           
                  
0 commit comments