fixed __toString() methods that can return false under certain circumstancies
This commit is contained in:
parent
2de5efdd1a
commit
6475bb9ccf
@ -39,7 +39,7 @@ class FileResource implements ResourceInterface
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->resource;
|
||||
return (string) $this->resource;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -39,7 +39,7 @@ class FileResource implements ResourceInterface
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->resource;
|
||||
return (string) $this->resource;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user