Commit 33b81ef0 authored by H. Westphal's avatar H. Westphal Committed by Benjamin Eberlei

Fixed CS

parent 4ff4d515
......@@ -46,7 +46,8 @@ class BlobType extends Type
{
if (null === $value) {
return null;
} else if (is_string($value)) {
}
if (is_string($value)) {
$value = fopen('data://text/plain;base64,' . base64_encode($value), 'r');
} else if ( ! is_resource($value)) {
throw ConversionException::conversionFailed($value, self::BLOB);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment