From be6aa8256e0f6a62b29a3c480f7ce5c0f7d5a7c9 Mon Sep 17 00:00:00 2001 From: Ka Yue Yeung Date: Mon, 15 Jun 2020 16:40:04 +0800 Subject: [PATCH] WordpressIdType should always return integer --- Types/WordpressIdType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Types/WordpressIdType.php b/Types/WordpressIdType.php index 2b612e7..9a77c7f 100644 --- a/Types/WordpressIdType.php +++ b/Types/WordpressIdType.php @@ -23,7 +23,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform) return null; } - return $value; + return (int) $value; } public function convertToDatabaseValue($value, AbstractPlatform $platform)