Commit 421cc333 authored by Terje Bråten's avatar Terje Bråten Committed by Steve Müller

Made the handling of NULL more consistent in the json_array type.

parent 0d817986
...@@ -54,7 +54,7 @@ class JsonArrayType extends Type ...@@ -54,7 +54,7 @@ class JsonArrayType extends Type
*/ */
public function convertToPHPValue($value, AbstractPlatform $platform) public function convertToPHPValue($value, AbstractPlatform $platform)
{ {
if ($value === null) { if ($value === null || $value === '') {
return array(); return array();
} }
......
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