From ae7059cbda116fcf0fa188c4634f1577920e7a4e Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 29 Apr 2018 23:31:32 +0530 Subject: [PATCH] Deprecated passing string for 2nd argument of h(). --- src/Core/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/functions.php b/src/Core/functions.php index 3a97ec1bd37..0fbd2069ada 100644 --- a/src/Core/functions.php +++ b/src/Core/functions.php @@ -64,6 +64,10 @@ function h($text, $double = true, $charset = null) } } if (is_string($double)) { + deprecationWarning( + 'Passing charset string for 2nd argument is deprecated. ' . + 'Use the 3rd argument instead.' + ); $charset = $double; }