Skip to content

Commit

Permalink
Merge pull request #8 from ceesvanegmond/patch-1
Browse files Browse the repository at this point in the history
Allow null to be returned by PHP7.*
  • Loading branch information
vinyvicente committed Nov 18, 2019
2 parents 72b1f00 + 35bc91b commit 8262d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PointType.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Point
* @param AbstractPlatform $platform
* @return mixed|string
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform): string
public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
{
if ($value instanceof Point) {
$value = sprintf('POINT(%F %F)', $value->getLatitude(), $value->getLongitude());
Expand Down

0 comments on commit 8262d0e

Please sign in to comment.