From f955423c35aa2e489b365091831ec996d5086bd0 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 20 Sep 2017 12:36:36 +0000 Subject: [PATCH] config: return the boolean and null definitions with the PHP associated types git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3955 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.php b/config.php index dd6613d..f8f0903 100644 --- a/config.php +++ b/config.php @@ -261,6 +261,12 @@ class config $new = substr ($values, 1, -1); elseif (strpos ($values, ".")) $new = floatval ($values); + elseif ($values === "null") + $new = null; + elseif ($values === "false") + $new = false; + elseif ($values === "true") + $new = true; else $new = intval ($values); }