diff --git a/src/Types/GeometryType.php b/src/Types/GeometryType.php index 478a8a9..a12918d 100644 --- a/src/Types/GeometryType.php +++ b/src/Types/GeometryType.php @@ -99,9 +99,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform) : ?st return $value->asBinary(); } - $type = is_object($value) ? get_class($value) : gettype($value); - - throw new \UnexpectedValueException(sprintf('Expected %s, got %s.', Geometry::class, $type)); + throw new \UnexpectedValueException(sprintf('Expected %s, got %s.', Geometry::class, get_debug_type($value))); } public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform) : string