Namespace is missing for SplFileObject reference

This commit is contained in:
Christian Kaps
2016-01-22 12:17:58 +01:00
parent a550eec389
commit 618351c11c

View File

@@ -153,7 +153,7 @@ class ObjectSerializer
*/
public function toFormValue($value)
{
if ($value instanceof SplFileObject) {
if ($value instanceof \SplFileObject) {
return $value->getRealPath();
} else {
return $this->toString($value);