From 7a3ca027bb18d81708ee649f5f87101d19afd70e Mon Sep 17 00:00:00 2001 From: Storms-Engineering Date: Tue, 1 Oct 2019 21:07:26 -0800 Subject: [PATCH] PHP Deserialize NULL values converted to correctly PHP Deserialize now correctly returns N as a null instead of an empty object --- src/core/operations/PHPDeserialize.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/operations/PHPDeserialize.mjs b/src/core/operations/PHPDeserialize.mjs index 904ced9e..2c510b35 100644 --- a/src/core/operations/PHPDeserialize.mjs +++ b/src/core/operations/PHPDeserialize.mjs @@ -128,8 +128,7 @@ class PHPDeserialize extends Operation { switch (kind) { case "n": expect(";"); - return ""; - + return "null"; case "i": case "d": case "b": {