We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7123d28 commit 4abe0efCopy full SHA for 4abe0ef
src/Database/Database.php
@@ -512,8 +512,8 @@ function (?string $value) {
512
* @return mixed
513
*/
514
function (mixed $value) {
515
- if (is_null($value)) {
516
- return;
+ if (!is_array($value)) {
+ return $value;
517
}
518
try {
519
return self::encodeSpatialData($value, Database::VAR_LINESTRING);
@@ -539,8 +539,8 @@ function (?string $value) {
539
540
541
542
543
544
545
546
return self::encodeSpatialData($value, Database::VAR_POLYGON);
0 commit comments