We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bac5c6 + 4abe0ef commit c7dcfd8Copy full SHA for c7dcfd8
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