From 1ed419a92fabd7320bdc25c59476eb73b07eec7e Mon Sep 17 00:00:00 2001 From: c01nd01r Date: Thu, 5 Dec 2019 14:54:11 +0300 Subject: [PATCH] [fix] See https://github.com/danielmewes/php-rql/issues/162 --- rdb/DatumConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdb/DatumConverter.php b/rdb/DatumConverter.php index 055e3a9..f3d3361 100644 --- a/rdb/DatumConverter.php +++ b/rdb/DatumConverter.php @@ -34,7 +34,7 @@ public function nativeToDatum($v) if (!is_numeric($key) && !is_string($key)) { throw new RqlDriverError("Key must be a string."); } - if (is_subclass_of($val, "\\r\\Query") && !is_subclass_of($val, '\r\Datum\Datum')) { + if (!is_string($val) && is_subclass_of($val, "\\r\\Query") && !is_subclass_of($val, '\r\Datum\Datum')) { $subDatum = $val; $mustUseMakeTerm = true; } else {