Skip to content

Commit

Permalink
Correction PHP 7.4 : creof#207
Browse files Browse the repository at this point in the history
  • Loading branch information
arlin2050 committed Mar 2, 2023
1 parent 58ea5fa commit 35d513b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CrEOF/Spatial/DBAL/Types/AbstractSpatialType.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
return null;
}

if (ctype_alpha($value[0])) {
if (!is_resource($value) && ctype_alpha($value[0])) {
return $this->getSpatialPlatform($platform)->convertStringToPHPValue($this, $value);
}

Expand Down

0 comments on commit 35d513b

Please sign in to comment.