Skip to content

Commit

Permalink
WordpressIdType should always return integer
Browse files Browse the repository at this point in the history
  • Loading branch information
kayue authored Jun 15, 2020
1 parent eb344e5 commit be6aa82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Types/WordpressIdType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
return null;
}

return $value;
return (int) $value;
}

public function convertToDatabaseValue($value, AbstractPlatform $platform)
Expand Down

0 comments on commit be6aa82

Please sign in to comment.