fixed __toString() methods that can return false under certain circumstancies

This commit is contained in:
Fabien Potencier 2010-07-25 18:24:03 +02:00
parent 2de5efdd1a
commit 6475bb9ccf
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class FileResource implements ResourceInterface
*/
public function __toString()
{
return $this->resource;
return (string) $this->resource;
}
/**

View File

@ -39,7 +39,7 @@ class FileResource implements ResourceInterface
*/
public function __toString()
{
return $this->resource;
return (string) $this->resource;
}
/**